mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-11 05:34:26 -04:00
Ensure the maximum cursor latency(10Hz)
This commit is contained in:
parent
3a16ca8ace
commit
fae4d6c935
3 changed files with 37 additions and 7 deletions
|
|
@ -2321,7 +2321,10 @@ bool wlr_scene_output_build_state(struct wlr_scene_output *scene_output,
|
|||
|
||||
// before scanout early return,
|
||||
// update cursor if deferred
|
||||
wlr_output_cursor_move_all_deferred(output);
|
||||
|
||||
struct timespec cursor_now;
|
||||
clock_gettime(CLOCK_MONOTONIC, &cursor_now);
|
||||
wlr_output_cursor_move_all_deferred(output, &cursor_now);
|
||||
|
||||
// We only want to try direct scanout if:
|
||||
// - There is only one entry in the render list
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue