DescriptionFix the drift in repeating timers.
Currently repeating blink timers ignore the difference between when the
timer was due to fire and when it actually did. In addition the delay
reported to chromium was rounded up to the nearest millisecond,
introducing unnecessary extra delay.
(Note seperatly DOMTimers have additional clamping).
This fairly broken behaviour has been there for a long time, and I
really hope nothing has come to depend on it!
Judging by
http://www.duckware.com/test/chrome/timeraccuracy.html this patch makes
things a lot better at least on linux. The actual delays are much
closer to the requested ones, and the run time modulo interval shows
the drift is gone.
BUG=328700
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199903
Patch Set 1 #
Total comments: 2
Patch Set 2 : Fixed tests #
Messages
Total messages: 10 (2 generated)
|