Animation drops game FPS
I created a 2d sprite animation using the 2d animation package and the 2d Ik package. My character is one sprite sheet (PBS file). In the PBS file all the spites (eyes, mouth, etc, - character is basically a square with a face) are arranged and bones are attached. Then I animated the character's idle animation in Unity.
The animation is complex and is a total of 1028 frames (about 17 seconds).
The scene is almost empty otherwise. There are a few sprites with colliders and rigid bodies for simple platforms. There is a background image which is 1024 px. x 1024 px.
In play mode the FPS drops down to around 30 FPS (and under).
I have another scene without the animation but with a HUGE number of assets (for a 2D scene hundreds of sprites and many of them constantly in motion). This scene runs at 210++ FPS consistently.
Why does this one animation kill the FPS? I am just getting started with creating animation for all the characters. If I add similar animations to NPCs in the scene (enemies) then this thing will probably not function at all.
Any suggestions are appreciated.
Your answer
Follow this Question
Related Questions
FPS drop beacause Dialog with 200 images in it 0 Answers
Hotkeys system performance optimization 0 Answers
Mobile Performance Issues 0 Answers
Spawning objects one by one or in chunks (performance question) 0 Answers
How do Humanoid animations compare to Generic ones in terms of performance? 0 Answers