On 9/28/10 2:25 PM, Glen Pike wrote:
Keith Peter's "Making Things Move" book is really good. Jobe Makar's Flash MX Game Programming Demystified explained the basic concepts nicely too.
I'm reading Keith Peter's book now. So far, very relevant - thanks!

There are lots of tutorials online, so I would Google "as3 physics collisions" or similar. For other optimisations - it's possibly not worth updating stuff that's not on stage until you put it back - is that possible?
What I was talking about wasn't necessarily adding and removing things from the stage, but adding and removing them from the GPU. You can add stuff to the stage without too many hiccups (in software) - but if you set the cacheAsBitmap and cacheAsBitmapMatrix properties (or update or remove something with those set), you cause the player to generate and upload (or destroy) a texture to the GPU - this has a noticeable impact on performance (at least as far as I can tell so far - the biggest impact out of most things).

That's why I was saying I'd like to control that part of it myself - I don't know if the available physics libraries have been re-crafted for mobile/GPU yet.

Kevin N.

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to