• Runtimes
  • Will having a large number of small animations be expensive?

  • Изменено
Related Discussions
...

My animation file has a large number of animations, say 1000. However they're all like 10, frames. Most of them are stationary images, some of them have a "wobble" effect and nothing else. I'm wondering if this will be inefficient in any way?

I measured the loading time and it seemed ok.

I saw that the setAnimation method that I use iterates through all the animations and searches for the one I want to apply. I can use a hashtable there I guess to make that process more efficient.

Are there any other things I have to worry about ?

For ref I'm using libgdx.


Here's my mertrics view, if that helps