[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Resurrecting Update Scheduling

Also, I agree with Vladimir's point that this is not WebGL-specific;
it would also be helpful e.g. for 2d canvas, modifying CSS transforms,
animating DOM elements etc.

I think the API could be as simple as:

  window.setDisplayTimeout(func, millis);

It would behave similar to setTimeout(), but if vsync is available if
would call back at the next vsync.  If vsync is not available, it
would call back after the specified time interval (I haven't thought
this part through).  For the case when the display is not visible, it
could defer the callback indefinitely, until the display is exposed


On Sat, Apr 17, 2010 at 4:38 PM, Thatcher Ulrich <tu@tulrich.com> wrote:
> Right, so the overall browser vsync is necessary but not sufficient for
> webgl apps to appear vsync'ed.  Without a JS update scheduler that is vsync
> aware, the app won't be able to update the scene in sync with the display.
> -T
> On Apr 17, 2010 1:52 PM, "Kenneth Russell" <kbr@google.com> wrote:
> Browsers supporting hardware compositing should automatically support
> vsynced rendering. WebGL never renders directly to the screen; it
> can't according to the HTML compositing model. If the browser uses a
> GPU-based API to put the rendering results on the screen, and enables
> vsync, then the WebGL output will be vsynced. Otherwise it's basically
> impossible to get it to be.
> -Ken
> On Sat, Apr 17, 2010 at 10:38 AM, Thatcher Ulrich <tu@tulrich.com> wrote:
>> I'd like to see some cl...
>> -----------------------------------------------------------
>> You are currently subscribe to publi...

You are currently subscribe to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: