Minecraft animated items texture pack

broken image

I added a needsAnimationUpdate to the TextureAtlasSprite, and changed the TextureMap.update method to only tick the textures which need to be ticked ( texture map, texture atlas sprite). This is what I did in my mod VanillaFix, and it led to framerate increases of between 10-30% in vanilla Minecraft, and up to 500% in large modpacks with many animated blocks (which applies to vanilla too, a texture pack could decide to have animated textures for every single block, or have very large textures). With very little effort, the code can be changed to tick only visible textures. This can be seen by looking at the '' profiler section, which can use up to around 30% of the game loop time with some high resolution texture packs or animations for many blocks.

broken image
broken image

Currently (in 1.12.2 and 1.13-pre5), all animated textures are updated every tick, which can decrease the framerate by a lot.

broken image