Rectangle Drawing Optimisation

Miscellaneous Forums/General Discussion/Rectangle Drawing Optimisation

All these optimisations are really crappy. You won't get speedups like that.

When blitting or doing large drawing like rects, doing less rects is better than doing more rects, despite how much screen they cover. Same for Drawimage. It is better to do less calls to drawimage and draw larger images than doing lots of little draws.

You're optimising stuff that does not matter.

If stuff is slow, then think about a whole paradigm change rather than tiny optimisations here and there which make no difference on todays hardware...

Ultimately you should only do any optimising when the game is finished anyway. Cos chances are if you aint gonna finish it, all this is wasting your time.