зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336598 P1 Tune setTimeout anti-flood constants to minimize jank. r=smaug
This commit is contained in:
Родитель
7a6a69db52
Коммит
10744cc4bb
|
@ -73,12 +73,12 @@ const uint32_t kThrottledEventQueueBackPressure = 5000;
|
|||
// As the length of the ThrottledEventQueue grows delay is increased. The
|
||||
// delay is scaled such that every kThrottledEventQueueBackPressure runnables
|
||||
// in the queue equates to an additional kBackPressureDelayMS.
|
||||
const double kBackPressureDelayMS = 500;
|
||||
const double kBackPressureDelayMS = 250;
|
||||
|
||||
// This defines a limit for how much the delay must drop before we actually
|
||||
// reduce back pressure throttle amount. This makes the throttle delay
|
||||
// a bit "sticky" once we enter back pressure.
|
||||
const double kBackPressureDelayReductionThresholdMS = 400;
|
||||
const double kBackPressureDelayReductionThresholdMS = 1000;
|
||||
|
||||
// The minimum delay we can reduce back pressure to before we just floor
|
||||
// the value back to zero. This allows us to ensure that we can exit
|
||||
|
|
Загрузка…
Ссылка в новой задаче