It seems that updateAnimations takes up quite a bit of CPU time now. Here is a profiler screenshot from my modpack:
Since most of the time is reported as "self time" it's probably caused by the loop bodies running many times.
Is it possible to iterate over listAnimatedSprites instead here? We shouldn't ever care about calling updateAnimation on non-animated sprites.
It seems that
updateAnimations
takes up quite a bit of CPU time now. Here is a profiler screenshot from my modpack:Since most of the time is reported as "self time" it's probably caused by the loop bodies running many times. Is it possible to iterate over
listAnimatedSprites
instead here? We shouldn't ever care about callingupdateAnimation
on non-animated sprites.https://github.com/LoliKingdom/LoliASM/blob/2b9d89b5816c0ecd9c22413a448c79946d0101d8/src/main/java/zone/rong/loliasm/client/sprite/ondemand/mixins/TextureMapMixin.java#L82