Algorithms for combining dirty rectangles
I'm moderately new to game programming, and I wanted to bring out the age old GamePanel again in C#.

I was wondering if there were any known performant algorithms that take two or more rectangles that represent dirty areas and combine them into one, for purposes of repainting only selected areas?
Algorithms for combining dirty rectangles
===

I'm moderately new to game programming, and I wanted to bring out the age old GamePanel again in C#.

I was wondering if there were any known performant algorithms that take two or more rectangles that represent dirty areas and combine them into one, for purposes of repainting only selected areas?