mojira.dev
MC-233605

Enchantment glint rendering can impact frame rate performance

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.

[media][media][media]

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).

[media]

[media]

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).

Linked issues

Attachments

Comments

Avoma

I can confirm this, though I'm unsure as to whether this should be considered an issue.

syarumi

This one might be pretty unnoticeable compared to MC-233604, and benchmarks can show different results on different machines so maybe this isn't worth time spending on, but it's still a 10-20% fps decrease for an enchant glint.

However, you can get noticeable results in the creative menu if you see the attachments, may depend.

syarumi

Updated report as this is not limited to GUI items.

syarumi

In 23w05a, even if you put the glint strength & speed to the lowest value (both OFF), frame times remain the same.

mrjasonn

Also @[Helper] Avoma this should be considered an actual issue because it's an issue that the game is not well optimised.

Faav

@unknown there is indeed a category for Performance issues, so yes this is considered a bug.

syarumi

I’m unable to reproduce this as of 25w16a, the performance hit when rendering the glint on items seems to be almost negligible as of current snapshot, and the frame rate drop from glint on entities seems to no longer be the case anymore, but I’m not certain when that was mitigated, so I believe this can now be closed as can’t reproduce.

[media][media]

syarumi

(Unassigned)

Confirmed

Performance, Rendering

1.17.1, 21w37a, 1.18.2, 22w16b, 1.19 Pre-release 4, ..., 1.20.2, 23w44a, 1.21.1, 24w33a, 1.21.4

Retrieved