Game Optimizing - Animators best practice?
By profiling my game I have found out that Animators.Update() is the operation that takes up the most CPU time by far (around (40%) in total).
My game is a sidescrolling platform game and every level contains somewhere between 25-50 animated coins. Each of the coins have an Animator component attached to it that plays a simple frame based animation.
I have set the culling mode to "Cull Completely" because from what I understand this should prevent the coin from animating when it is not visible by the camera.
If I disable the animators on the coins and profile my game Animators.Update() takes virtually no CPU time. I really want to decrease the amount of time Animators.Update() takes to increase the performance of my game.
Is there a better and less expensive way I can have my coins animate without suffering such high CPU time spent? Perhaps there is some way to do this without using a controller since the coin only has one animation.
Any help or thoughts would be very much appreciated!