mirror of
https://github.com/brl/mutter.git
synced 2025-02-04 07:34:09 +00:00
1dbf25afa1
After 4faeb12731b8, the maximum time allowed for an update to happen is calculated as: max_render_time_allowed = refresh_interval - 1000 * sync_delay; However, extremely small refresh intervals -- that come as consequence to extremely high refresh rates -- may fall into an odd numerical range when refresh_interval < 1000 * sync_delay. That would give us a negative time. To be extra cautious about it, add another sanity check for this case. Change suggested by Jasper St. Pierre. https://gitlab.gnome.org/GNOME/mutter/merge_requests/363