Re: requestAnimationFrame

2010-11-15 Thread Jonas Sicking
On Mon, Nov 15, 2010 at 6:17 PM, Boris Zbarsky wrote: > On 11/15/10 6:55 PM, Gregg Tavares (wrk) wrote: >> >> How would setInterval with multiple functions on >> mozRequestAnimationFrame solve this issue? They are still all going to >> get called at the fastest interval right? > > Why? > > setInte

Re: requestAnimationFrame

2010-11-15 Thread Robert O'Callahan
On Tue, Nov 16, 2010 at 1:45 PM, Gregg Tavares (wrk) wrote: > On Mon, Nov 15, 2010 at 4:07 PM, Robert O'Callahan > wrote: > >> On Tue, Nov 16, 2010 at 12:55 PM, Gregg Tavares (wrk) wrote: >> >>> I've seen proposals for something more like >>> >>> element.setInternvalIfVisible(func, internva

Re: requestAnimationFrame

2010-11-15 Thread Robert O'Callahan
On Tue, Nov 16, 2010 at 1:26 PM, Gregg Tavares (wrk) wrote: > On Mon, Nov 15, 2010 at 3:58 PM, Robert O'Callahan > wrote: > >> If you really want to animate in 10Hz steps, then I suggest you do >> something like >> var start = window.animationTime; >> var rate = 10; // Hz >> var duration = 10; //

Re: requestAnimationFrame

2010-11-15 Thread Boris Zbarsky
On 11/15/10 7:45 PM, Gregg Tavares (wrk) wrote: Does it matter? What happens now? Now, with setInterval there is no connection to rendering. I set the code to update one element to have an interval of 16 and another to have an interval of 100. If the first one makes the second one visible that do

Re: requestAnimationFrame

2010-11-15 Thread Boris Zbarsky
On 11/15/10 6:55 PM, Gregg Tavares (wrk) wrote: How would setInterval with multiple functions on mozRequestAnimationFrame solve this issue? They are still all going to get called at the fastest interval right? Why? setInterval(function() { window.requestAnimationFrame(function redrawElem1()

Re: requestAnimationFrame

2010-11-15 Thread Bjoern Hoehrmann
* Jonas Sicking wrote: >On Mon, Nov 15, 2010 at 5:01 PM, Bjoern Hoehrmann wrote: >> The frame rate is a number in the swf header that cannot be set to a "as >> fast as possible" value. > >Ah, so that also means that different animations can't run with >different frame rates? That's the basic mode

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 5:10 PM, Jonas Sicking wrote: > On Mon, Nov 15, 2010 at 5:01 PM, Bjoern Hoehrmann > wrote: > > * Gregg Tavares (wrk) wrote: > >>There is plenty of flash content that has a lower than 60hz (or fast as > >>possible) refresh rate. When something is instead implementing in HT

Re: requestAnimationFrame

2010-11-15 Thread Jonas Sicking
On Mon, Nov 15, 2010 at 5:01 PM, Bjoern Hoehrmann wrote: > * Gregg Tavares (wrk) wrote: >>There is plenty of flash content that has a lower than 60hz (or fast as >>possible) refresh rate. When something is instead implementing in HTML5 >>instead of Flash what should they do to get the similar resu

Re: requestAnimationFrame

2010-11-15 Thread Bjoern Hoehrmann
* Gregg Tavares (wrk) wrote: >There is plenty of flash content that has a lower than 60hz (or fast as >possible) refresh rate. When something is instead implementing in HTML5 >instead of Flash what should they do to get the similar results? Checking >cnn.com, time.com, arstechnica.com, wired.com an

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 4:07 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 12:55 PM, Gregg Tavares (wrk) wrote: > >> I've seen proposals for something more like >> >> element.setInternvalIfVisible(func, internval); >> >> Which is the same as setInterval but only gets called if the e

Re: Discussion of File API at TPAC in Lyon

2010-11-15 Thread Jonas Sicking
On Sun, Nov 14, 2010 at 8:32 AM, Cameron McCormack wrote: > Jonas Sicking: >> Since I wrote the IDL for indexeddb above, WebIDL has gotten support >> for "static" which should do what we want. Though it's a bit unclear >> if using a real interface would cause there to be a .prototype >> property o

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 3:58 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 12:03 PM, Gregg Tavares (wrk) wrote: > >> One is, how should this api be used if I want an app to update at 10hz. >> It seems to be designed to assume I want the maximum frame rate. If I want >> to run slower woul

Re: requestAnimationFrame

2010-11-15 Thread Jonas Sicking
On Mon, Nov 15, 2010 at 3:58 PM, Robert O'Callahan wrote: > On Tue, Nov 16, 2010 at 12:03 PM, Gregg Tavares (wrk) > wrote: >> >> One is, how should this api be used if I want an app to update at 10hz. >>  It seems to be designed to assume I want the maximum frame rate. If I want >> to run slower

Re: requestAnimationFrame

2010-11-15 Thread Robert O'Callahan
On Tue, Nov 16, 2010 at 12:55 PM, Gregg Tavares (wrk) wrote: > I've seen proposals for something more like > > element.setInternvalIfVisible(func, internval); > > Which is the same as setInterval but only gets called if the element is > visible. With that kind of API there is no connection

Re: requestAnimationFrame

2010-11-15 Thread Robert O'Callahan
On Tue, Nov 16, 2010 at 12:03 PM, Gregg Tavares (wrk) wrote: > One is, how should this api be used if I want an app to update at 10hz. It > seems to be designed to assume I want the maximum frame rate. If I want to > run slower would I just use > > setInterval(function() { >window.requestAnim

Re: requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
On Mon, Nov 15, 2010 at 3:28 PM, Boris Zbarsky wrote: > On 11/15/10 6:03 PM, Gregg Tavares (wrk) wrote: > >> One is, how should this api be used if I want an app to update at 10hz. >> It seems to be designed to assume I want the maximum frame rate. >> > > The initial API was designed to replace

Re: requestAnimationFrame

2010-11-15 Thread Boris Zbarsky
On 11/15/10 6:03 PM, Gregg Tavares (wrk) wrote: One is, how should this api be used if I want an app to update at 10hz. It seems to be designed to assume I want the maximum frame rate. The initial API was designed to replace setTimeout(..., 0) animations, yeah. The idea was to ask for "anim

requestAnimationFrame

2010-11-15 Thread Gregg Tavares (wrk)
following in the footsteps of a previous thread http://lists.w3.org/Archives/Public/public-webapps/2009OctDec/0223.html I'd like to see if there is some consensus on this issue. Various people are anxious to see this happen in more browsers. A couple of questions came up for requestAnimationFrame

Re: Updates to FileAPI

2010-11-15 Thread Eric Uhrhane
SGTM On Fri, Nov 12, 2010 at 11:07 AM, Arun Ranganathan wrote: > - Original Message - >> On 11/12/10 11:53 AM, Boris Zbarsky wrote: >> > OK, then we need to define rules for instantiating a Date object >> > here >> > (in the face of strings that may or may not be valid date format >> > st

[widgets] Widget Updates

2010-11-15 Thread Rich Tibbett
We've been working on getting the Widget Updates specification in to publication shape over the last few weeks and it would be good to get further review of the current specification with a view to pushing it to Last Call. The latest draft of this specification can be found here: http://dev.w3.or

CfC: Last Call Working Draft of Progress Events; deadline Nov 29

2010-11-15 Thread Arthur Barstow
Anne has addressed all of the open Actions and Issue for Progress Events [A&I]. As such, he proposes it be published as a Last Call Working Draft and this is a Call for Consensus (CfC) to do so: http://dev.w3.org/2006/webapi/progress/ This CfC satisfies the group's requirement to "record the