From 187abbbcfda55b735b2796b3afb0bf3c7d192a9a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 6 Jul 2024 17:42:45 +0200 Subject: [PATCH] avoid spam --- src/render/Renderer.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 778fd57da..729157f8c 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1428,15 +1428,19 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC); // apply timelines for explicit sync - pMonitor->output->state->setExplicitInFence(pMonitor->inTimeline->exportAsSyncFileFD(pMonitor->lastWaitPoint)); + bool anyExplicit = !explicitPresented.empty(); + if (anyExplicit) { + pMonitor->output->state->setExplicitInFence(pMonitor->inTimeline->exportAsSyncFileFD(pMonitor->lastWaitPoint)); - for (auto& e : explicitPresented) { - e->syncobj->releaseTimeline->timeline->transfer(pMonitor->outTimeline, pMonitor->commitSeq, e->syncobj->releasePoint); + for (auto& e : explicitPresented) { + e->syncobj->releaseTimeline->timeline->transfer(pMonitor->outTimeline, pMonitor->commitSeq, e->syncobj->releasePoint); + } + + explicitPresented.clear(); + pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq)); } pMonitor->lastWaitPoint = 0; - explicitPresented.clear(); - pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq)); pMonitor->commitSeq++; if (!pMonitor->state.commit()) {