Tweak repaint timeout to 5ms after vblank

Reduces risk of flicker, but we need something better here.
dev
Kristian Høgsberg 15 years ago
parent 4adaf5c6bc
commit 5d312db56e
  1. 2
      wayland-system-compositor.c

@ -597,7 +597,7 @@ page_flip_handler(int fd, unsigned int frame,
&compositor->base,
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;
animate = container_of(compositor->animate_list.next, struct wlsc_animate, link);

Loading…
Cancel
Save