Animation slows down game

Hi,

i have a model with animation. When this model is on screen and is animated the framerate drops like 7 frames ( from 30 to about 23 ). I have also other animated models and they work fine, no matter how many there is on screen. Also it doesnt matter if there is like one or three of these models on screen, it always drops to same fps. Script on this model is same as on others, which doesnt drop fps. I checked that if i turn the animations off, the framerate doesnt drop anymore. Does anyone has any idea what could be the possible issue ? How could animation slow down game ? Its 100 frames long animation, imported as fbx from 3ds Max. There are 3 dummies on the model. One parent, two childs. ( was tested on iphone ).

Thanks for any response.

Luke

Yes, use the profiler :slight_smile: @Graham: LOL

My guess in such cases: you have a collider on your mesh and you animate scale track. This combination is a bad idea, because it has to recalculate collider on every frame. Check if you see something like UpdatingCollider in the Profiler.

Strangely the issue was that on the enemy was rotating geometry, once i removed it, its no more slowing down, so that was obviously issue, tho i dont know why.