Performance Impact: None

r_depthbits

Defines the precision of Z-buffering (how the engine calculates depth). Keeping this at 32 prevents 'Z-fighting' where textures flicker rapidly when overlapping.

💡

Pro Tip

32-bit is mandatory — lower values cause Z-fighting on ramps and rail beams that can make you miss shots by a single pixel.

Friendly Name Z-Buffer Depth Precision
Default Value 32
Data Type int
Quick Copy seta r_depthbits "32"

Available Settings

ValueDescription
0 0 - Automatic
24 24-bit
32 32-bit (Recommended)

Related Commands

Want to use r_depthbits in your config?

Our visual editor lets you tweak this setting and 300+ others without touching a text file.

Open in Editor