r.Shaders.Optimize
r.Shaders.Optimize is a console variable in Unreal Engine 5 (UE5). See what r.Shaders.Optimize does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Whether to optimize shaders. When using graphical debuggers like Nsight it can be useful to disable this on startup. This setting can be overriden in any Engine.ini under the [ShaderCompiler] section.
Usage
Unreal console (open with ~)
> r.Shaders.Optimize 1Console variables take a value. Replace 1 with the setting you need. Run it with no value to print the current one.
Related in r
r.Shaders.CompressionFormat.Oodle.LevelVarr.Shaders.ExtraDataVarr.Shaders.FastMathVarr.Shaders.FlowControlModeVarr.Shaders.ForceDXCVarr.Shaders.GenerateSymbolsVarr.Shaders.SkipCompressionVarr.Shaders.SymbolPathOverrideVarr.Shaders.SymbolsVarr.Shaders.UseGBufferRefactorVarr.Shaders.ValidationVarr.Shaders.WarningsAsErrorsVar