0 Members and 1 Guest are viewing this topic.
I am a proud cynic.
About the screen refresh, don't forget the optional parameters of platform.window:invalidate()( platform.window:invalidate([x, y, width, height]) )That refreshed only the part of the screen you want
Well, I'm developing a game (not saying the name :p) and the extra parameters are really important for me. Now I don't need to redraw all the images on the screen using gc:drawImage (which is slow), and I notice a big speedup. The game will be unplayable without it.
Well, the thing is that I don't have to draw more images if I use this. Redrawing the screen alone might be faster, but for many games that need images, the combination will be faster. drawImage really can be a bottleneck in programs, and that is why I try to limit using it with redrawing only parts.