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.
This commit is contained in:
lkn 2026-06-24 19:22:43 +02:00
parent c37fd28572
commit 4897e1637b
1 changed files with 4 additions and 0 deletions

View File

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