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

GUI / Item rendering can heavily impact frame rate performance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 21w37a, 21w42a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 2, 1.18, 1.18.1 Pre-release 1, 1.18.1, 22w06a, 1.18.2, 22w12a, 22w16b, 22w19a, 1.19 Pre-release 4, 1.19, 1.19.2, 1.19.3 Pre-release 2, 1.19.3, 23w03a, 23w04a, 23w05a, 23w06a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3, 1.19.4, 23w16a, 23w18a, 1.20.1, 23w31a, 23w32a
    • None
    • Confirmed
    • Performance

      Rendering a large amount of items can drastically decrease frame rate, notably in the GUI when opening inventories, containers/chests full of them. This can be very noticeable when arranging a large amount of items.

      Seems to be that every single item rendered counts as a draw call, and considering the amount of items inside a full double chest and their separate layers, this can get up to dozens of draw calls, making rendering chest contents a resource intensive task.

      A single item can have one of the next counted as a separate layer, which contributes to the lag considerably when stacked:

      • Color layers (leather armor, tipped arrows, potions, etc).
      • Pattern layers (banners, shields).
      • Armor trims.
      • Enchant glint (MC-233605).
      • Item quantity label/number (MC-249635).
      • Durability bar.

      How to reproduce

      1. Create a void world, place a double chest full of items and another one empty.
      2. Open ALT+F3 and open both chests.
      3. Compare the frame rate.

        1. 2021-08-01_21.10.57.png
          2021-08-01_21.10.57.png
          131 kB
        2. 2021-08-01_21.11.33.png
          2021-08-01_21.11.33.png
          131 kB
        3. 2021-08-01_21.19.00.png
          2021-08-01_21.19.00.png
          123 kB
        4. 2021-08-01_21.19.14.png
          2021-08-01_21.19.14.png
          93 kB
        5. 2021-08-02_16.52.13.png
          2021-08-02_16.52.13.png
          77 kB
        6. 2021-08-02_16.53.38.png
          2021-08-02_16.53.38.png
          98 kB
        7. 2022-06-07_21.14.56.png
          2022-06-07_21.14.56.png
          831 kB
        8. 2022-06-07_21.15.57.png
          2022-06-07_21.15.57.png
          579 kB
        9. container_1.png
          container_1.png
          169 kB
        10. container_2.png
          container_2.png
          199 kB
        11. MC-233604.png
          MC-233604.png
          237 kB
        12. recipe_1.png
          recipe_1.png
          108 kB
        13. recipe_2.png
          recipe_2.png
          123 kB

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            17 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: