UEConsole Commands
VariableConsole VariableRenderer

r.CompileShadersForDevelopment

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

Category: Renderer · Namespace: r

Help

Setting this to 0 allows to ship a game with more optimized shaders as some editor and development features are not longer compiled into the shaders. Note: This should be done when shipping but it\'s not done automatically yet (feature need to mature and shaders will compile slower as shader caching from development isn\'t shared). Cannot be changed at runtime - can be put into BaseEngine.ini 0: off, shader can run a bit faster 1: on (Default)

Usage

Unreal console (open with ~)
> r.CompileShadersForDevelopment 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