Hello,
I’m using Unity to create a 2D game for iOS and am running into some problems when I play an animation clip on the sprites in my scene. The drop in frames happens on the iPad 1 – the iPad 2 sees no drop. The animation clips themselves modify the scale of the sprite (we use the clips along with traditional sprite frame animation to create a better visual effect).
I am rendering the sprites with Sprite Manager 2. Each gameobject has the sprite script, a mesh renderer, and a mesh filter. I am getting around 50 fps in the scene until an animation clip begins playing, at which point I lose around 15-20 frames. It doesn’t seem to matter how many of these clips are playing or on how many sprites. When any clip begins playing, the fps drop happens, and when all the animation clips end, the fps goes back to normal.
Has anyone run into this before or know if there’s anything I can do to stop the drop in frames? I have set Application.targetFrameRate to 60 and disabled vsync in order to up the fps in general.
What I find most curious is that I can play two different animation clips on two different sprites, but there is no greater drop in fps.
Regards,
Joe