MoreMcmeta / core

Animate almost any Minecraft texture with more options. Texture configuration API. 1.16-1.20
GNU Lesser General Public License v3.0
28 stars 5 forks source link

Improve performance, especially for large frames #43

Closed soir20 closed 12 months ago

soir20 commented 12 months ago

What did you change?

Improved general performance and performance for animations with large frames.

Why did you make this change?

Performance with resource packs that contain large animation frames was extremely poor (1-2 FPS on my computer with the example presented in #39).

How did you make this change?

How can others see the effect of your change?

Use a resource pack like Hyper Realistic Sky and check the debug menu (F3). The performance hit of such packs should be minor. For this particular pack, you can check performance in three scenarios:

Performance with any animated resource pack has also been improved.

Links to related issues

39

Which Minecraft versions does this change apply to?

1.20

Did you test this change on both mod loaders?

Did you unit test this change?

Areas for improvement (if any)

A new TextureComponent handler, onLayerBelowChange, would be useful for plugins that add partially-transparent effects and need to alpha blend pixels in their layer based with pixels updated in layers below.

Additional notes (if any)

Will be backported to older MC versions.