W3C home > Mailing lists > Public > public-web-perf@w3.org > May 2012

Re: Semantics of the time argument on rAF's FrameRequestCallback

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 09 May 2012 14:36:40 -0400
Message-ID: <4FAAB938.5020601@mit.edu>
To: Yehuda Katz <yehuda.katz@jquery.com>
CC: Jatinder Mann <jmann@microsoft.com>, Nat Duca <nduca@chromium.org>, "public-web-perf@w3.org" <public-web-perf@w3.org>
On 5/9/12 2:20 PM, Yehuda Katz wrote:
> In this case, shouldn't the time be "the time that the animations will
> be presented on
> the screen".

That would be ideal, yes.  Hard to do, of course, since the request 
callback has to run before the animation is presented on the screen and 
the browser has no way to know how long it'll take to run....

In practice, for synchronizing animations with each other it's more 
important that the same time be used for all animations than what 
exactly that time means.  For making a particular animation look smooth, 
of course, the meaning of the time might matter.

-Boris
Received on Wednesday, 9 May 2012 18:37:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC