diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-01-27 19:11:03 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-01-27 19:11:14 +0000 |
| commit | bc7e488a4c7a4bfdd7bce66265fe8aea516fd2ed (patch) | |
| tree | 496aa74e4f6a1f655e28adc145cd5af612d8211d /src/render/Renderer.cpp | |
| parent | 8b1069b33051dbc3a133444dc6ce7385cdc51377 (diff) | |
monitor: clear output state after usage
fixes massive lag
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 61f21854..b338dfb4 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1244,9 +1244,13 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { if (UNLOCK_SC) wlr_output_lock_software_cursors(pMonitor->output, false); + pMonitor->clearState(); + return; } + pMonitor->clearState(); + if (shouldTear) pMonitor->tearingState.busy = true; @@ -2080,6 +2084,8 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR Debug::log(ERR, "Couldn't commit output named {}", pMonitor->output->name); } + pMonitor->clearState(); + int x, y; wlr_output_transformed_resolution(pMonitor->output, &x, &y); pMonitor->vecSize = (Vector2D(x, y) / pMonitor->scale).floor(); |
