Performance Impact: Low (VRAM when enabled)

r_stencilbits

Allocates an 8-bit stencil buffer for advanced effects like dynamic shadows or decals (if supported). In modern QL, dynamic shadows are limited to simple blobs (cg_shadows 1) and do not require stencil. Pros always set to 0 to save VRAM and eliminate any shadow-related overhead.

💡

Pro Tip

Keep at 0 — stencil buffer is unnecessary in QL since real dynamic shadows are not available. Disabling shadows (cg_shadows 0) + r_stencilbits 0 gives the cleanest visuals and best performance for tracking enemies.

Friendly Name Stencil Buffer Size
Default Value 0
Data Type int
Quick Copy seta r_stencilbits "0"

Available Settings

ValueDescription
0 0 - Disabled (Recommended/Default)
8 8 - Enabled (Rarely Needed)

Related Commands

Want to use r_stencilbits in your config?

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

Open in Editor