mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00:00
![Daniel van Vugt](/assets/img/avatar_default.png)
The final tick of a timeline is >= its duration, but when using ticks that are slightly in the future ("next presentation time") this means the final tick will execute and complete the timeline up to one frame interval before the timestamp of that final tick. For the single clock test we now just check if the overall duration is within one frame of the expected timeline duration. The dual clock (switching) test needs a threshold of two frames because starting each new clock creates a phase shift (error) of up to one frame. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2161>