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

Re: [Public WebGL] Re: double-buffering and back buffer preservation



On Nov 18, 2010, at 7:42 PM, Mark Callow wrote:

> 
>>> > 
>>> Doesn't this block usage of EXT_discard_framebuffer as it would
>>> 
>>> > 
>>> require an additional/unnecessary "clear" ?
>>> 
>> No, because that clear can happen lazily if no user clear happens before the next draw call.
>> 
>> 
> Not all applications use Clear. They may be using a full screen quad or a sky-box or something else to paint their backgrounds so the clear could indeed be additional and unnecessary. But in the web environment I suppose it is unavoidable.

Yeah, data security trumps efficiency in a web browser. But it might be worth adding a note that using clear() when possible can provide drawing optimizations in many cases.

-----
~Chris
cmarrin@apple.com




-----------------------------------------------------------
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: