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)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Mon, 23 Apr 2018 15:46:57 +0000 (16:46 +0100)
commit00f2b8e2b6f768ecf06c328c986c9321c770aeae
tree1ef1574492110b581a1ee97c4589acb77a3eb07e
parentfbc7babe8eb8aaea7b18c8d38ec856294a9d6a52
clutter: Smooth out master clock to smooth visuals

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

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.

https://gitlab.gnome.org/GNOME/mutter/issues/25

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