Quote Originally Posted by robert83 View Post
I don't remember where I've read, but I recall that some map editor tutorial in some other language did it like this :

Process Lines
Process Layers
Process Tiles
Maybe this was necessary becouse of the overal map structure they used.


Quote Originally Posted by robert83 View Post
Even tough if I'm not saving cycles, I'm atleast getting data in a better order now no?
This mostly depends on your original map structure and where do you nead certain data.


Quote Originally Posted by robert83 View Post
Right now it might not be the biggest performance hit, but later it might be no? I mean if the array is much larger.... it most jump here and there inside the array because the lines for the layers are not right next to each other. Or maybe there is no difference in speed ?
When reading from multidimensional array which is stored in memory there isn't much difference. Even if you have to jump all ower the memory this would be barely noticable.
But if you would have been reading this data from HDD jumping around would cause significant performance difference.