renderer: Tearing implementation (#3441)

This commit is contained in:
Vaxry
2023-09-28 21:48:33 +01:00
committed by GitHub
parent 1e513e25d5
commit 88b63a00b6
19 changed files with 231 additions and 61 deletions

View File

@@ -81,6 +81,13 @@ class CMonitor {
CRegion lastFrameDamage; // stores last frame damage
// for tearing
CWindow* solitaryClient = nullptr;
bool canTear = false;
bool nextRenderTorn = false;
bool ignoreNextFlipEvent = false;
bool renderingFromVblankEvent = false;
// for the special workspace. 0 means not open.
int specialWorkspaceID = 0;