Hello again-
So I tried deactivating the animated sprites - but once they are deactivated its hard to reactivate them. They disappear. Bam! gone.
I have now deactivated the tk2dAnimatedsprite component for offscreen objects.
This helped but I still get Frame rate spikes.
I have the profiler and the spikes seem fairly evenly spaced every 2 seconds or so.
It says that they are coming from,
The update() in my script on the animatedsprite object. (with 20 of these its ok) but with 40 it starts to spike.
Physics.Simulate (mainly)
and also, Overhead.
my goal is to have 80 - 100 animated sprites. Interestingly, with 100 there is not that much difference to 40.
So I began playing with the Fixedtimestep and maximum allowable timestep to try and adjust performance.
Setting these low - 0.01 and 0.01 gets a perfect framerate with no spikes but the animation frame rate becomes really slow.
Any advice on where to go from here?
I am thinking of using co-routines but maybe this will not help?
Bl.