mojira.dev
MC-300753

Small sprites for buttons cause huge fps drops

So I was testing how small can I make sprites for buttons and sliders and found this interesting phenomenon.

If I have default sized sprites(200px by 20px) everything works as usual. There’s fps drop, but it’s not something noticable without fps counter.

If I change the sprites to be 20px by 20px the result is identical, no changes in performance compared to default.

But if I change the sprites to be 10px by 10px, the fps drop is massive. In the video you can see me going through these examples in the same order.

Attachments

Comments 3

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please attach a resource pack showcasing the issue?

Just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:

Steps to Reproduce:
1.
2.
3.

Observed Results:
(Briefly describe what happens)

Expected Results:
(Briefly describe what should happen)

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

Resource pack I’m using was just an example. It doesn’t matter. I created a completely new one with button textures only and experimented more. I found that the issue doesn’t depend solely on the sprite size. For example, if I change border width to 1, the fps is higher than if border width is 4, like in my example(I forgot to include this), but it’s still 2 times lower than if sprite was 20x20px and not 10x10px. It might be a side effect of using nine slice. Though I don’t see any difference if I change border width and use 20x20px sprite.

Interesting, have MC-269152 and/or MC-270527 resurfaced recently?

amongstreality

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8, 25w32a

Retrieved