Refresh - Viewerframe Mode
// Pseudocode for dirty region merge void markDirty(Rect newDirty) for (auto& existing : dirtyRects) if (existing.intersects(newDirty)) existing = existing.union(newDirty); return;
Where the "ViewerFrame" is the box showing the live video feed. viewerframe mode refresh