frametime fix

This commit is contained in:
Jorijn van der Graaf 2025-12-30 00:44:45 +01:00
commit a220e40d13
2 changed files with 15 additions and 0 deletions

View file

@ -378,6 +378,7 @@ void WindowWayland::QueueRender() {
}
void WindowWayland::StartUpdate() {
lastFrameBegin = std::chrono::high_resolution_clock::now();
cb = wl_surface_frame(surface);
wl_callback_add_listener(cb, &wl_callback_listener, this);
updating = true;