PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Drawing only part of screen?

I'm sure I asked this before but I can't quite remember and I can't find it in a search.

Is it safe to only draw parts of the game screen onto the back buffer during process frame? The parts of the game that have actually changed (aka dirty)?

Put another way, under what circumstances (if any) will this fail?

I'm only interested in Pocket PC version BTW.
It's safe to use dirty rectangles until you lose focus (ie phones) or shut the device off. Then you will need to redraw everything to restore it. I would recommend that you redraw your full backbuffer each frame, or minimally, update the full backbuffer anytime the surface changes.