[webkit-dev] setTimeout as browser speed throttle
Justin Haygood
jhaygood at reaktix.com
Tue Sep 30 13:07:55 PDT 2008
Fwiw, ActionScript 3 implements a Timer API we could use a basis:
http://livedocs.adobe.com/flex/2/langref/flash/utils/Timer.html
It basically is an OOP based timer/interval API.
-----Original Message-----
From: webkit-dev-bounces at lists.webkit.org
[mailto:webkit-dev-bounces at lists.webkit.org] On Behalf Of Geoffrey Garen
Sent: Tuesday, September 30, 2008 3:58 PM
To: Maciej Stachowiak
Cc: webkit-dev at lists.webkit.org
Subject: Re: [webkit-dev] setTimeout as browser speed throttle
> Or there is option 3:
>
> 3) Restore the clamp for setTimeout and setInterval to 10ms for
> compatibility, and add a new setHighResTimer API that does not have
> any lower bound.
I'd like to tweak this suggestion a bit:
Let's make this new timer API object-oriented, so it can be both less
slow and less crazy than setTimeout / setInterval. There are many
"Timer" APIs in open source JavaScript libraries on which we could
base a new API.
Perhaps a Timer object would always be high resolution, or perhaps it
would have an "isHighResolution" bit.
Cheers,
Geoff
_______________________________________________
webkit-dev mailing list
webkit-dev at lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
More information about the webkit-dev
mailing list