Since I have added a few animations on my sprites, I started to notice that each time a sprite leaves the game, the game freezes for a fraction of a second.
A run with instruments shows me that "AtlasSprite dealloc" takes an awful amount of time, especially for the animations.
Any ideas how to optimize ?
I was thinking about reusing sprites and/or animations, but I fail to see how this can be practical since I have a lot of different entities with different animations.
Another idea was to not deallocate the sprites at all during one level, but this might lead to performance problems I guess.