From a182c3b18f3f7363db39c8280096a02afc7878d6 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 8 Apr 2024 16:28:44 +0100 Subject: [PATCH] stuf --- src/managers/FrameSchedulingManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/managers/FrameSchedulingManager.cpp b/src/managers/FrameSchedulingManager.cpp index f6f5edbb..956c5e20 100644 --- a/src/managers/FrameSchedulingManager.cpp +++ b/src/managers/FrameSchedulingManager.cpp @@ -139,6 +139,8 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre return; } + Debug::log(LOG, "Present: del {}", DATA->delayed); + int forceFrames = DATA->forceFrames + pMonitor->forceFullFrames; DATA->lastPresent.reset(); @@ -165,7 +167,6 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre Debug::log(LOG, "render"); - // we can't do this on wayland uint64_t µsUntilVblank = 0; if (presentationData) { @@ -257,6 +258,8 @@ void CFrameSchedulingManager::onVblankTimer(void* data) { glGetSynciv(DATA->fenceSync, GL_SYNC_STATUS, sizeof(GLint), nullptr, &syncStatus); bool GPUSignaled = syncStatus == GL_SIGNALED; + Debug::log(LOG, "vblank: signaled {}", GPUSignaled); + if (DATA->rendered && GPUSignaled) { Debug::log(LOG, "timer nothing"); // cool, we don't need to do anything. Wait for present.