This commit is contained in:
Vaxry 2024-03-18 23:35:54 +00:00
parent cdef97ca2c
commit db3259bfe4

View file

@ -157,7 +157,7 @@ void CFrameSchedulingManager::onPresent(CMonitor* pMonitor, wlr_output_event_pre
if (msUntilVblank > 0) { if (msUntilVblank > 0) {
wl_event_source_timer_update(DATA->event, 0); wl_event_source_timer_update(DATA->event, 0);
wl_event_source_timer_update(DATA->event, std::floor(msUntilVblank)); wl_event_source_timer_update(DATA->event, std::floor(msUntilVblank + 1));
} }
Debug::log(LOG, "until vblank {:.2f}", msUntilVblank); Debug::log(LOG, "until vblank {:.2f}", msUntilVblank);