This commit is contained in:
Vaxry 2024-04-08 16:28:44 +01:00
parent a106d96ab6
commit a182c3b18f

View file

@ -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.