mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-25 07:49:49 +01:00
avoid spam
This commit is contained in:
parent
c735c01057
commit
187abbbcfd
1 changed files with 9 additions and 5 deletions
|
@ -1428,15 +1428,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
|
||||||
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) {
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
explicitPresented.clear();
|
||||||
|
pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq));
|
||||||
}
|
}
|
||||||
|
|
||||||
pMonitor->lastWaitPoint = 0;
|
pMonitor->lastWaitPoint = 0;
|
||||||
explicitPresented.clear();
|
|
||||||
pMonitor->output->state->setExplicitOutFence(pMonitor->outTimeline->exportAsSyncFileFD(pMonitor->commitSeq));
|
|
||||||
pMonitor->commitSeq++;
|
pMonitor->commitSeq++;
|
||||||
|
|
||||||
if (!pMonitor->state.commit()) {
|
if (!pMonitor->state.commit()) {
|
||||||
|
|
Loading…
Reference in a new issue