Good practices on coding during the compo

Normally I’m really concerned with optimization and processing time. I’ve read about static variables and function calls being slow in as3, with some pretty convincing tests (which I’ve never tried, but seemed reasonable).

But, this LD I didn’t want to waste time encapsulating stuff, creating a .xml file with all my constants and keeping references/constants in the proper place. I’ve simply made use of a “Registry” class which holds everything that need to be accessed elsewhere.I’ve also added some many groups, each with lot’s of objects, to simplify things when recycling/drawing. Well, I’ve just checked how long update and draw was taking and (surprisingly) update was 10 times slower than drawing! It should be the other way around!!

Now I’ll have to try to find all the slow parts and rewrite it… and that’s probably most of the code…