diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 14:20:03 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-06 14:20:03 +0000 |
| commit | 082f439db2ccb58f2792a4885a0aa09ae666a6b0 (patch) | |
| tree | 65a04c841bbcb8047f96b9f09e50bd9c95e98576 /src/render/Renderer.cpp | |
| parent | 12697d2b722ec0976ac6b2fc650f26ea61d36627 (diff) | |
fix issues with direct scanout's lack of surface frame feedback
Diffstat (limited to 'src/render/Renderer.cpp')
| -rw-r--r-- | src/render/Renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 1c8fb78d..c9ae0a80 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -594,6 +594,9 @@ bool CHyprRenderer::attemptDirectScanout(CMonitor* pMonitor) { return false; } + timespec now; + clock_gettime(CLOCK_MONOTONIC, &now); + wlr_surface_send_frame_done(PSURFACE, &now); wlr_presentation_surface_sampled_on_output(g_pCompositor->m_sWLRPresentation, PSURFACE, pMonitor->output); if (wlr_output_commit(pMonitor->output)) { |
