mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
34a9e6a8f8
Before this commit, next presentation time could end up behind now_us or ahead of now_us depending on how presentation times happened to be aligned relative to integer multiples of refresh_interval_us. It's not clear whether this was originally intended because even if it the next presentation time ends up behind now_us, it is moved ahead by a while loop down below in this function. Even though this difference in behavior didn't really matter, it made reasoning about the subsequent branches more complex. It would also potentially introduce bugs if the logic was to be modified. So this commit makes it so next presentation time is always ahead of now_us. It also adds a comment with a graph detailing the computations, and adjusts the variable names to drop unfortunate terminology mistakes. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1707> |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |