Quite some time ago I made a "GIF player" that basically reads a sprite array and swaps the sprite using a Coroutine
, one after the other, in order to imitate a "GIF" animation.
I was working but I have no clue about performance as on my PC it was fine.
Thing is, the game is meant for mobile and I experience some lag and I don't know if it is due to my not using sprite sheet animations instead of my shiny solution.
The question is: Is there some difference between the sprite sheet anim and swapping sprites from an array? I know Unity's API (that I used) cannot be called from other than the main thread. What about sprite sheet animations? Using another thread would definitely help but I can't do that and maybe they could.