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

Re: [Public WebGL] Ambiguity and Non-deterministicness in the WebGL Spec

On 12/12/2010 08:53 PM, Mark Callow wrote:
> Please remind me why this clearing is necessary. If it is for
> "security" then surely this extra clearing is only necessary if the
> drawingBuffer is given to a different webgl context that original drew
> the contents.
> As I pointed out in a previous e-mail not all applications use
> glClear() because their other rendering will fill the entire buffer.
> In those cases following the above is overhead that cannot be
> optimized away. When I was at SGI, we used to go to enormous lengths
> to make sure the clear operation was fast because it has an enormous
> effect on the overall frame-rate. It feels really painful to be
> introducing extra clears.
In addition to the "Fast-Z-Clear" feature on Radeon 8000-series (which I
believe is kinda similar to the tricks that the SGI Onyx pulled), on
hardware as far back at the Radeon R100 (circa 2001!), things like the
heirarchical Z buffers ("Hyper-Z" in ATI-speak and "Lightspeed Memory
Architecture" in nVidia-speak) means that your program is often much
slower if it DOESN'T clear the screen at the start of each new frame. 
nVidia have long  been advising that the screen is cleared every frame -
even if it's immediately followed by a whole-screen draw (like a sky-box

However, I doubt that cellphones and Intel GPU's have such fancy logic.

  -- Steve

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: