How costly is it to clear the color buffer?

Artax

New member
how much better is it to draw a skybox? I can't see any difference in my n00b loop limited learning progs :F
 
It's slightly faster to clear the color buffer than to draw a skybox, but the difference is small.
 
Re: How costly is it to clear the color buffer?

Actually it depends on the chip. Just doing a clear, it can be up to 2 times faster.

That being said, in general, clear the Z, then draw the scene front to back with the sky last. This takes advantage of the occlusion culling to make the skybox not need to draw nearly as much. However, if there is a lot of non-textured sky, it may be faster to clear the color up front.
.
 
Back
Top