UEConsole Commands
VariableConsole VariableRenderer

r.D3D12.RayTracing.SpecializeStateObjects

r.D3D12.RayTracing.SpecializeStateObjects is a console variable in Unreal Engine 5 (UE5). See what r.D3D12.RayTracing.SpecializeStateObjects does, its values, and how to use this cvar in the Unreal console below.

Category: Renderer · Namespace: r

Help

Whether to create specialized unique ray tracing pipeline state objects for each ray generation shader. (default = 0) This option can produce more more efficient PSOs for the GPU at the cost of longer creation times and more memory. Requires DXR 1.1.

Usage

Unreal console (open with ~)
> r.D3D12.RayTracing.SpecializeStateObjects 1

Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.

Related in r