Closed Bug 412898 Opened 17 years ago Closed 16 years ago

Timers return erratic results +/- 25%

Categories

(Core :: DOM: Core & HTML, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jeresig, Unassigned)

References

()

Details

When using setTimeout or setInterval (with a delay of 20ms) the delay between function calls will randomly spike and drop +/- 25% of the expected delay (ignoring the fact that the delay is increased to 25ms, which is detailed in another bug).

See the following graphs for context:
http://ejohn.org/files/timers-20.png
http://ejohn.org/files/intervals-20.png

and the blog post in the URL.

The expected result is that the delays between calls remains within some level of tolerance (I would assume that 25% would be too high). I'm working on pulling together timer log data to accompany this bug.
Depends on: 414013
Fixed in the nightlies:
http://ejohn.org/files/ff3-timers.png

(left column is 0, 10, 15ms setInterval, right column is 0, 10, 15ms setTimeout)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.