Finally had some time today to tweak the animation :
What I did not change :
_ still using vector graphics instead of bitmaps
_ nothing is cachedAsBitmap
What I did :
_ gotten rid of Array and Vector type everywhere there is iteration and need to use the splice method. I've used a LinkedList Class instead (credit goes to Alkemi), where basically every node has a next/prev property and you can iterate through objects fetching the next property of the previous object. Deletion is much faster. Ask if needed.
_ fixed the framerate at 60fps
Whay I got :
_ small memory print, no growth
_ 60fps theoretical framerate. My tests in different player versions show :
___ That it runs like crap (to the eye, the stat graph is perfect) in the debug standalone player
___ That it runs fine in Chrome
___ That it runs fine in IE, except when the mouse is moved (this will not be my input, but still, any ideas on how to solve that ?)
___ That it runs with many hiccups in Firefox (once again, to the eye only)
My next move :
_ trying blitting, with copyPixels()
___ my clips will have to be scaled and rotated before being put in squared bitmapdatas, so that I don't have to do that on the fly in every frame.
___ As everything will already be rotated, I will have to make everything go 30Â° (for now I only use the x axis, and my main clip, containing everything else, is rotated 30Â°, which makes it easier for me to understand...)
Is my next move worth the try ? What would you do to improve rendering in Firefox and IE (mouse pb) ? DO you notice other problems on your computers and if so, what's your hardware/software combination ?
Thanks again !