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

Updating blocks creates lag spikes proportional to geometry in chunk section

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w07c, Minecraft 18w09a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 1.13-pre1, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.2, Minecraft 18w45a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3, 1.14.4, 19w37a, 19w39a, 19w40a, 19w41a, 19w42a, 19w45a
    • Fix Version/s: None
    • Labels:
    • Confirmation Status:
      Confirmed
    • Category:
      Block states, Performance, Rendering
    • Mojang Priority:
      Important

      Description

      The bug

      Any block change seems to trigger a redraw of the entire chunk section. This is most noticeable when breaking and replacing blocks, but is also caused by wheat growing, for example. Lag is increased depending on the geometry inside the chunk section – complex models like fences cause greater lag.

      This is client-side rendering issue since when filling large areas the command success message appears almost instantaneously in the log but the game freezes for some seconds.

      When the debug rendering pie chart is visible the following warnings are logged:

      [21:20:51] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer.level.terrain_setup.rebuildNear.build near' took aprox 223.112349 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer.level.terrain_setup.rebuildNear.build near' took aprox 1796.166532 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer.level.terrain_setup.rebuildNear' took aprox 2046.063861 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer.level.terrain_setup' took aprox 2046.184909 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer.level' took aprox 2049.560368 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root.gameRenderer' took aprox 2051.362563 ms
      [21:20:53] [Client thread/WARN]: Something's taking too long! 'root' took aprox 2054.692309 m
      

      How to reproduce

      1. Use the following command
        /fill ~1 ~1 ~1 ~15 ~15 ~15 oak_fence
        
      2. Place or break a block next to the filled fences

        Attachments

        1. 2019-08-09_21.25.44.png
          1.29 MB
          Oliver
        2. 2019-09-13_23.41.51.png
          1.20 MB
          whyFullname
        3. 2019-11-08_08.39.43.png
          707 kB
          RedCMD
        4. 2019-11-08_08.41.19.png
          694 kB
          RedCMD
        5. lag spikes .png
          1.60 MB
          Danny Kessler
        6. MC-lag_spike_.mp4
          673 kB
          Daminator4113
        7. Screenshot (930).png
          130 kB
          NOPEname
        8. Screenshot (931).png
          207 kB
          NOPEname
        9. Screenshot (932).png
          24 kB
          NOPEname

          Issue Links

            Activity

              People

              • Assignee:
                slicedlime [Mojang] slicedlime
                Reporter:
                marcono1234 [Mod] Marcono1234
              • Votes:
                401 Vote for this issue
                Watchers:
                151 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: