[AS3] Optimizing a game with a block engine
With AS3, I'm making a game that uses a block engine, meaning it places blocks in an array resembling the appearance of a world.
Not only this, but when you move the camera in the game, areas of blocks that aren't on the screen get removed, and areas that need to be shown are loaded (Using addChild).
It runs smooth when there's only a couple hundred blocks on the screen, but when there's a bit more, than slower computers start to make the game lag a lot.
Is there a way I can efficiently speed up this engine by caching, or going about it in a different way?
If you need additional details, I will be happy to include them.
Here's a link to the .swf on my website:
zanzlanz .com/MineBlocks2 .php