From 4897e1637b9626a9e3fc87fe180ee519ef8224da Mon Sep 17 00:00:00 2001 From: lkn Date: Wed, 24 Jun 2026 19:22:43 +0200 Subject: [PATCH] perf: schedule frame after every grab motion for 144Hz smoothness Without schedule_frame, drag/resize updates sit in the scene graph until the next natural vsync. At 144Hz this is 7ms max. Scheduling after each motion ensures the next frame picks up the move/resize. --- src/backend/wayland/wl_grab.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/wayland/wl_grab.c b/src/backend/wayland/wl_grab.c index e29d64b..51f4d43 100644 --- a/src/backend/wayland/wl_grab.c +++ b/src/backend/wayland/wl_grab.c @@ -131,6 +131,10 @@ wl_grab_apply_motion(void) } } } + + /* Ensure the scene renders this frame — at 144 Hz this gives 7ms latency */ + if (wl_state.output) + wlr_output_schedule_frame(wl_state.output); } void