clutter: Smooth out master clock to smooth visuals
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 16 Feb 2018 08:50:59 +0000 (02:50 -0600)
committerJeremy Bicha <jbicha@debian.org>
Tue, 9 Oct 2018 00:24:51 +0000 (01:24 +0100)
commit6e81a2f60c9d87c54caa62d07aae2b59d8d2e100
tree3d1559542de73c5c665f4c598e9d72bcb4da57a9
parent0d5f1438dcced845421ef72c8c9aaaa4a37d6e34
clutter: Smooth out master clock to smooth visuals

Clutter's master clock was jittery because it included errors in cur_tick
such as dispatch delays due to other sources. Dispatch could also occur up
to 1ms early since GSource can only be timed to the millisecond. All of this
could impact the visual smoothness of animations as they are displayed on
the steady interval of the monitor, but spacially moving in less regular
steps derived from the dispatch times.

The simple fix is to ignore any jitter in dispatch timing. Try a little
bit harder to use a precise interval that will better match the display
hardware, and smoother visuals will follow.

Bug: https://gitlab.gnome.org/GNOME/mutter/issues/25
Forwarded: https://gitlab.gnome.org/GNOME/mutter/merge_requests/70

Gbp-Pq: Name clutter-Smooth-out-master-clock-to-smooth-visuals.patch
clutter/clutter/clutter-master-clock-default.c