Dirty Rectangles

I want to try implementing a dirty rectangle algorithm in my game so that I don’t have to repaint the entire screen.

Has anyone seen an article or source code on this that I could look at so that I could understand how this works?

Need something pretty simple to start with. :wink:

Thanks,

Drew

Take Swing and you have it right in place (+ some other optimizations).

Otherwise lookup Swing source.