avoid spam

This commit is contained in:
Vaxry 2024-07-06 17:42:45 +02:00
parent 09af47a4f4
commit e09e76aa4a

View file

@ -1431,15 +1431,19 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC); Aquamarine::eOutputPresentationMode::AQ_OUTPUT_PRESENTATION_VSYNC);
// apply timelines for explicit sync // apply timelines for explicit sync
bool anyExplicit = !explicitPresented.empty();
if (anyExplicit) {
pMonitor->output->state->setExplicitInFence(pMonitor->inTimeline->exportAsSyncFileFD(pMonitor->lastWaitPoint)); pMonitor->output->state->setExplicitInFence(pMonitor->inTimeline->exportAsSyncFileFD(pMonitor->lastWaitPoint));
for (auto& e : explicitPresented) { for (auto& e : explicitPresented) {
e->syncobj->releaseTimeline->timeline->transfer(pMonitor->outTimeline, pMonitor->commitSeq, e->syncobj->releasePoint); e->syncobj->releaseTimeline->timeline->transfer(pMonitor->outTimeline, pMonitor->commitSeq, e->syncobj->releasePoint);
} }
pMonitor->lastWaitPoint = 0;
explicitPresented.clear(); explicitPresented.clear();
pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq)); pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq));
}
pMonitor->lastWaitPoint = 0;
pMonitor->commitSeq++; pMonitor->commitSeq++;
if (!pMonitor->state.commit()) { if (!pMonitor->state.commit()) {