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

Re: [Public WebGL] Disable software rendering

requestAnimationFrame is supposed to do exactly what you are asking for. The problem is either WebGL applications that are not using requestAnimationFrame, you using a browser that does not support requestAnimationFrame or a bug in your browser.



On 21/06/2011 18:30, stephen white wrote:
On 21/06/2011, at 12:17 PM, Mo, Zhenyao wrote:
As Gregg points out, WebGL only supports non-mipmapped NPOT at the
moment, assuming the underlying driver supports that (it's required by
spec, either GL or GL ES 2).  The browser isn't aware whether the
driver implements it in HW or SW.

Since this is the situation, it won't be possible to implement finer grained control for better outcomes. As such, the mechanism used to prevent Flash from running until it's in the foreground is the minimum that needs to be implemented for WebGL. The "experimental-3d" canvas needs to be blocked from displaying, running, or otherwise consuming CPU.

This is going to be a little more difficult than Flash, as the code is in _javascript_ and may not check if the canvas is yet visible. This could be mitigated with nextAnimationFrame being aware of the display status of the canvas. There may be other ideas for implementing this, but I do know that not doing anything is going to cause problems in the longer term.

I'm probably one of a lesser number of people, but I don't think I'm a negligible minority. When I read RSS feeds or news sites like Reddit, I open multiple tabs. When those tabs contain Flash, it's fine. When those tabs contain WebGL, my machine is unusable. This isn't an impression that we want more people to acquire as they upgrade...


You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
fn:Mark Callow
org:HI Corporation;Graphics Lab, Research & Development
adr:Higashiyama 1-4-4, Meguro-ku;;Meguro Higashiyama Bldg 5F;Tokyo;;153-0043;Japan
title:Chief Architect
tel;work:+81 3 3710 9367 x228
tel;fax:+81 3 5773 8660
url:http://www.hicorp.co.jp,  http://www.mascotcapsule.com