Hello Everyone ,
I'm in the process of creating a map editor, but ran into a problem, I'm using tiles 32x32 , my widht is fixed 20x32 (640) , but I can dynamicaly set the length, if I generate say a map that is 1500x32 tiles long that , my editor slows down to a crawl, probably because I'm rendering all the sprites at once, not just the ones visible . How can I render only the visible sprites?
Attached I have here my entire project. Still lots of stuff to do but I think I'm progressing nicely. Anyway try to generate a map that is say 150 in length, you'll see the FPS drops drasticaly...
Can someone please help me with this? Only draw what is actually visible.
Greetings
Robert
Bookmarks