Quote Originally Posted by Avatar
I guess you're rendering the whole map each refresh.

If you're using an array(I'm sure you're using an array ^^) Just try to find, which tiles to render, this will speed up the render

To find which one you have to render is quite easy, just get your position in the world, then divide it by the width/height of your tiles, do the same adding to the base value widht/height of the screen, and you'll have the rectangle of tiles you have to render !

I'm not sure I'm clear ^^ Let me know if you don't understand, I'll try to give you a piece of code !

Bye
Avatar
Here's a [url=http://terraqueous.f2o.org/dgdev/viewtopic.php?t=352]] to another thread where this (drawing only the visible parts of the map) was discussed, which may save you some coding time ,