Tweak repaint timeout to 5ms after vblank
Reduces risk of flicker, but we need something better here.
This commit is contained in:
@@ -597,7 +597,7 @@ page_flip_handler(int fd, unsigned int frame,
|
|||||||
&compositor->base,
|
&compositor->base,
|
||||||
compositor->current_frame, msecs);
|
compositor->current_frame, msecs);
|
||||||
|
|
||||||
wl_event_source_timer_update(compositor->timer_source, 10);
|
wl_event_source_timer_update(compositor->timer_source, 5);
|
||||||
compositor->repaint_on_timeout = 1;
|
compositor->repaint_on_timeout = 1;
|
||||||
|
|
||||||
animate = container_of(compositor->animate_list.next, struct wlsc_animate, link);
|
animate = container_of(compositor->animate_list.next, struct wlsc_animate, link);
|
||||||
|
|||||||
Reference in New Issue
Block a user