April 17, 2009, 12:06 am
I was interested to see what the performance difference would be between rendering each tile to the screen for three layers, versus rendering three individual layer images. Unsurprisingly, the latter is much faster on my machine! This does, however, raise an important point - for that speed gain, is it worth a ridiculous increase in memory usage? Consider a 64*64 tile map with 32*32 pixel tiles. That's a 2048*2048 bitmap, and since flash decompresses any images into memory (and for good reason) one would run out of memory incredibly quickly with multiple layers. I'm only referring to the case of scrolling of course, but nevertheless I felt it worth confirming by experiment. I'm only going to be doing this for a menu screen I think.


