mojira.dev
MC-270527

"tile" texture scaling also causes incredible lag with small textures

The bug

If a small texture is defined for a UI element and its scaling behaviour set to "tile", the game will be incredibly laggy on the client due to it having to render a single texture file thousands of times.

How to reproduce

  1. Download and apply the attached resource pack

  2. Try your best to navigate the menus

Expected results

A usable experience.

Actual results

prankd

How to fix

If the texture to be tiled is sufficiently small, then pre-generate a larger version of the tiled texture and stitch this to the gui.png-atlas, then tile with this. Much less texture planes will be needed as a result while the outcome is visually identical.

Linked issues

Attachments

Comments 2

muzikbike

This may also be fixed, assuming my hardware isn't just better now. Can someone confirm if 24w33a fixed this?

BugTracker

@unknown I can indeed confirm that this has been fixed, this no longer seems to be an issue in 24w36a:

[media][media]

muzikbike

(Unassigned)

Confirmed

Textures and models

1.20.4, 24w14a

24w33a

Retrieved