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

Enchantment glint rendering can impact frame rate performance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 21w37a, 1.18.2, 22w16b, 1.19 Pre-release 4, 1.19, 1.19.2, 22w46a, 1.19.3 Pre-release 2, 1.19.3, 23w04a, 23w05a, 1.19.4 Pre-release 1, 1.19.4, 23w16a, 23w18a, 1.20.1, 23w31a, 1.20.2, 23w44a, 24w33a, 1.21.1
    • None
    • Confirmed
    • Performance, Rendering

      When the enchantment glint is applied on some items in the GUI or entity models, it seems to be impacting frame rate times when a certain number of them are being rendered. This is more noticeable when a large number of enchanted items or entities with enchanted armor show on the screen. Compared to when the glint is not applied, rendering it when it's present ends up being more intensive.

      Do note that these tests were made in low end hardware, so the result might not be really apparent outside this instance. Some of these results could be also caused by MC-166101, due to how the enchant glint renders multiple times when an item has multiple layers (such as leather armor, etc).

      Some of the screenshots were taken on fabric, but can be reproduced in vanilla as well.

      How to reproduce

      1. Create a void world.
      2. Place both a double chest of golden apples and another chest of enchanted golden apples.
      3. Open both chests and compare the frame rate.
      4. Alternatively, compare the frame rate when looking at a row of armor stands with enchanted and unenchanted armor (as seen in the attachments).

        1. 2021-08-01_21.21.11.png
          166 kB
          syarumi
        2. 2021-08-01_21.21.48.png
          158 kB
          syarumi
        3. 2022-11-17_21.03.53.png
          293 kB
          syarumi
        4. 2022-11-17_21.05.21.png
          371 kB
          syarumi
        5. 2022-11-18_06.41.48.png
          348 kB
          syarumi
        6. 2022-11-18_07.40.55.png
          104 kB
          syarumi
        7. 2022-11-18_07.41.19.png
          123 kB
          syarumi
        8. 2023-01-26_16.51.18.png
          113 kB
          syarumi
        9. 2023-05-04_18.59.41.png
          99 kB
          syarumi
        10. 2023-05-04_18.59.56.png
          120 kB
          syarumi
        11. container_2.png
          199 kB
          syarumi
        12. container_3.png
          167 kB
          syarumi
        13. creative_1.png
          111 kB
          syarumi
        14. creative_2.png
          137 kB
          syarumi
        15. MC-233605 - Enchanted Golden Apple.png
          250 kB
          [Mod] Avoma
        16. MC-233605 - Golden Apple.png
          232 kB
          [Mod] Avoma

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            13 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: