Disable Z-Test

Use the Disable Z-Test override mode to help determine whether your application is encountering potential performance issues due to Z-buffer operations.

In the viewing pipeline, 3D data is projected onto 2D screen space; a Z-buffer stores the z-coordinate of the object used to render each pixel in 2D space. Z-testing, also known as depth testing, will typically reject attempts to render into a specific pixel if the z-buffer value of a new rendering pixel is farther away from the viewer than the current depth value stored in the z-buffer.

The Disable Z-Test override mode does not perform any Z-buffer comparisons.

Normal Picture

Disable Z-Test

Therefore, disabling Z–test renders all objects in a sequential order independent of their closeness to the viewer, and reveals some objects that are otherwise hidden.

If these modes significantly improve performance, you might be able to increase your frame rate by using some other culling technique prior to the Z-buffer test in the pipeline.

For more complete information about compiler optimizations, see our Optimization Notice.