mirror of
https://github.com/brl/mutter.git
synced 2024-12-22 19:12:04 +00:00
6f094bd399
Previously clutter timelines advanced according to `g_source_get_time`. But that meant the spatial stepping of animations was visibly sensitive to any irregularities in the main loop. It also represented a time older [1] than the intended presentation time of each frame. Now we instead use `master_clock_get_next_presentation_time`. This ensures we get the smoothness of hardware vsync as well as being closer to the actual presentation time. This means, for example, backends like Xorg that move the hardware cursor independently of repaints will have their animations more closely matching the hardware cursor position. So the cursor appears to stick more closely when dragging windows or on the lock screen etc. [1] "older" = (refresh_interval - sync_delay) = ~14ms for 60Hz Closes: https://gitlab.gnome.org/GNOME/mutter/issues/25 https://gitlab.gnome.org/GNOME/mutter/merge_requests/724 |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |