This is the function that is called when it is time to update the interface data:
void OnPaint(CefRefPtr<CefBrowser> Browser, PaintElementType Type, const RectList& DirtyRects, const void* pBuffer)
pBuffer is the entire updated image data. DirtyRects is a list of the pixels that have changed since the last call to this function.
Is it wise to make multiple calls to UpdateSubresource() per update to change just the DirtyRects, or should I just make one call to UpdateSubresource() and update the entire texture with pBuffer? Would Map/Unmap be a better option for handling the DirtyRects option?
I ask this because the size of the list of DirtyRects will obviously vary widely per call. Thanks in advance.
Edited by Deortuka, 27 November 2012 - 12:43 PM.