1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

WindowServer: Add a mode for running without buffer flipping

We can't rely on all hardware to give us a way to flip between the back
and front buffer.

This mode should actually perform slightly better but may show some tearing
as we don't have a way to know when we're in vertical retrace.
This commit is contained in:
Andreas Kling 2019-08-15 15:08:32 +02:00
parent 2349dc1a21
commit 14888bd992
2 changed files with 35 additions and 6 deletions

View file

@ -35,6 +35,8 @@ public:
void invalidate_cursor();
Rect current_cursor_rect() const;
bool can_flip_buffers() const { return true; }
private:
WSCompositor();
void flip_buffers();