Its basicaly this:
<img src="http://i.imgur.com/tKxlC.jpg" border="0" />
At the start of the frame I start loop X, and it starts loop Y. Then I select a tile by comparing its X and Y to the current Loop Index. Then I compare the array value, if its 1 or greater, the tile is visible, if its 0 the tile is invisible
- this takes roughly 12 seconds
Then I have this:
<img src="http://i.imgur.com/nEiC0.jpg" border="0" />
If the value is 2,3,4 or higher, it means there's an object to be loaded
- now it takes 36 seconds :/