mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
WindowServer+LibGUI: Coalesce multiple client paints into GMultiPaintEvents.
This allows GWindow to paint up to 32 separate rects before telling the WindowServer to flip the buffers. Quite a bit smoother. :^)
This commit is contained in:
parent
7efd61fcf5
commit
7234900f61
6 changed files with 54 additions and 18 deletions
|
@ -515,7 +515,8 @@ void WSClientConnection::handle_request(const WSAPIDidFinishPaintingNotification
|
|||
return;
|
||||
}
|
||||
auto& window = *(*it).value;
|
||||
WSWindowManager::the().invalidate(window, request.rect());
|
||||
for (auto& rect : request.rects())
|
||||
WSWindowManager::the().invalidate(window, rect);
|
||||
}
|
||||
|
||||
void WSClientConnection::handle_request(const WSAPIGetWindowBackingStoreRequest& request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue