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

GPU usage in latest snapshot significantly higher than before, causing lag or crash for some users

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w22a
    • Fix Version/s: 1.16 Pre-release 1
    • Labels:
      None
    • Environment:
      Any
    • Confirmation Status:
      Confirmed
    • Category:
      Performance

      Description

      Workaround

      There is a resource pack by JellySquid and gegy1000 attached to this ticket which may mitigate the performance issues introduced in 20w22a by applying some changes to the built-in shaders that Minecraft uses.

      You can install it just like any other resource pack. Here's a tutorial if you don't know how to do that: https://minecraft.gamepedia.com/Tutorials/Loading_a_resource_pack

      This is the latest version of the resource pack: MC-186075 Shader Patch r4.zip

      There are no guarantees from the mod team or Mojang that it works, but many people in the comments of this ticket have confirmed that it improves the game's performance significantly in this snapshot.

      Please note that since the rendering changes are experimental and may be changed or removed altogether in future snapshots, the resource pack patch may stop working in in the future.

      If you're interested in the source code, here's the GitHub repo for the resource pack.

      In the latest Snapshot, 20w22a, GPU usage has significantly increased, causing many users to experience decreased performance, with some being unable to even start the game.

      Analysis by JellySquid

      It looks like the culprit of this massive increase in GPU usage comes down to the new framebuffer blending technique used to resolve some translucency issues between render layers (i.e. items behind fluids).

        Attachments

        1. 2020-05-29_11.49.34.png
          2020-05-29_11.49.34.png
          1.43 MB
        2. 2020-05-29_15.24.42.png
          2020-05-29_15.24.42.png
          585 kB
        3. 2020-05-29_20.00.31.png
          2020-05-29_20.00.31.png
          1.29 MB
        4. 2020-05-30_01.18.36.png
          2020-05-30_01.18.36.png
          657 kB
        5. 2020-05-30_16.31.45.png
          2020-05-30_16.31.45.png
          210 kB
        6. 2020-05-30_17.08.06.png
          2020-05-30_17.08.06.png
          241 kB
        7. 2020-05-31_14.21.09.png
          2020-05-31_14.21.09.png
          1006 kB
        8. 2020-05-31_14.32.59.png
          2020-05-31_14.32.59.png
          619 kB
        9. 2020-05-31_14.34.47.png
          2020-05-31_14.34.47.png
          1000 kB
        10. 2020-05-31_14.41.48.png
          2020-05-31_14.41.48.png
          1.06 MB
        11. 2020-06-01_18.46.30.png
          2020-06-01_18.46.30.png
          767 kB
        12. 2020-06-01_18.47.38.png
          2020-06-01_18.47.38.png
          772 kB
        13. debug-report-2020-05-29_16.10.31.zip
          27 kB
        14. image-2020-05-30-00-54-12-004.png
          image-2020-05-30-00-54-12-004.png
          1.03 MB
        15. image-2020-05-30-01-17-36-203.png
          image-2020-05-30-01-17-36-203.png
          1.04 MB
        16. lag-20w22a.png
          lag-20w22a.png
          418 kB
        17. MC-186075 Shader Patch r2.zip
          2 kB
        18. MC-186075 Shader Patch r3.zip
          2 kB
        19. MC-186075 Shader Patch r4.zip
          2 kB
        20. profile-results-2020-05-29_16.10.27.txt
          83 kB
        21. Screenshot 2020-05-29 at 15.36.25.png
          Screenshot 2020-05-29 at 15.36.25.png
          98 kB
        22. Screenshot 2020-05-29 at 15.42.29.png
          Screenshot 2020-05-29 at 15.42.29.png
          2.22 MB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              juhanimies juhani paskapää
              Votes:
              124 Vote for this issue
              Watchers:
              74 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: