RESOLVED INVALID 45238
DHTML animation with setTimeout is slow due to 10ms clamping
https://bugs.webkit.org/show_bug.cgi?id=45238
Summary DHTML animation with setTimeout is slow due to 10ms clamping
John A. Bilicki III
Reported 2010-09-04 18:38:34 PDT
The script in this XHTML file animates quickly in Opera 10.6/10.7 and is slow in IE9, Firefox 3.6/4 Beta 4, and Safari 5.
Attachments
DHTML Width Animation (2.28 KB, application/xhtml+xml)
2010-09-07 13:32 PDT, John A. Bilicki III
no flags
Alexey Proskuryakov
Comment 1 2010-09-07 12:33:38 PDT
There is no XHTML file attached. Please note that the timeout is clamped to 10ms in most browsers, so that a buggy page that specifies 0 doesn't take too much CPU resources. Chromium has a lower value for that, and maybe Opera does, too?
John A. Bilicki III
Comment 2 2010-09-07 13:32:10 PDT
Created attachment 66757 [details] DHTML Width Animation
John A. Bilicki III
Comment 3 2010-09-07 13:32:44 PDT
I am certain I attached it originally; I've attached it again.
Alexey Proskuryakov
Comment 4 2010-09-07 14:18:11 PDT
Yes, this page uses 1ms setTimeout, so it runs up to 10x slower in browsers that do clamping. We're considering changing that, but the behavior is currently by design, so resolving as INVALID. You can consider using CSS transitions instead - that will be smoother and less CPU intensive.
Note You need to log in before you can comment on or make changes to this bug.