Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-112730

Beacon beam and structure block render twice per frame

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.11.2, Minecraft 1.12 Pre-Release 6, Minecraft 17w47b
    • Fix Version/s: None
    • Environment:
      Windows 10
      Java 8 update 25
      NVIDIA GeForce GT 640
    • Confirmation Status:
      Confirmed
    • Category:
      Beacon, Rendering

      Description

      The bug

      Beacon beams and structure block outlines will render themselves twice per frame if the chunk sector that the block entity is in is in view.
      This can be observed by the opacity of a beacon beam changing:

      The decreased opacity when looking upward indicates there is only a single render.

      As side note this bug was introduced in the fix to MC-68247

      Affected blocks

      Last updated for 1.11.2

      • beacon
      • structure_block

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      This happens because the method net.minecraft.client.renderer.RenderGlobal.renderEntities(Entity, ICamera, float) first renders all tile entities and then all "global" tile entities. These are in the set net.minecraft.client.renderer.RenderGlobal.setTileEntities because their overridden method net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer.isGlobalRenderer(T) returns true.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pau101 Paul Fulham
            • Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: