So i have been using the background images object to display my game map and this works fine and is quite fast, but I want to see if I can make it faster.
So I have been experimenting with my own background rendering routine by using a LUA script file which keeps track of the window position throughout the game. i start off by pasting backdrops into the frame around where the window is positioned. Whenever I scroll I delete the backgrops that are more than several tiles away from the screen and paste in the ones towards where the player scolled. I am still using around the same ammount of objects than I was before but without the memory and CPU overhead of the background iamges objects.
i am now able to get 450-500 fps when scrolling in 1024x768 resolution! I just need to play around with it a bit more and convert into isometric view.
So far its looking good.
|