forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1857618 - Ensure normal tasks get enough time to run, r=mstange
The basic idea is to check if there are pending tasks also right after RefreshDriver tick has been handled, not only before tick. But in this new case we can't predict how much time is needed for other tasks, so just a bit of time is given. The patch tweaks also other things: CanDoCatchUpTick (which is used by catch-up ticks and FinishedWaitingForTransaction) should return false if the active timer is blocked because of mSuspendVsyncPriorityTicksUntil. And to make it easier to check whether driver is blocked, mSuspendVsyncPriorityTicksUntil is changed to rely on local time, not the time stamp from vsync. The low priority notify is changed so that it uses member variables from the driver and in case it does trigger a tick, it uses the most recent skipped values. Differential Revision: https://phabricator.services.mozilla.com/D193409
- Loading branch information
Olli Pettay
authored and
Olli Pettay
committed
Nov 20, 2023
1 parent
5b633e7
commit 6975460
Showing
1 changed file
with
69 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters