r.Shaders.FlowControlMode
r.Shaders.FlowControlMode is a console variable in Unreal Engine 5 (UE5). See what r.Shaders.FlowControlMode does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Specifies whether the shader compiler should preserve or unroll flow-control in shader code. This is primarily a debugging aid and will override any per-shader or per-material settings if not left at the default value (0). 0: Off (Default) - Entirely at the discretion of the platform compiler or the specific shader/material. 1: Prefer - Attempt to preserve flow-control. 2: Avoid - Attempt to unroll and flatten flow-control.
Usage
Unreal console (open with ~)
> r.Shaders.FlowControlMode 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.CheckLevelVarr.Shaders.CompressionFormatVarr.Shaders.CompressionFormat.Oodle.AlgoVarr.Shaders.CompressionFormat.Oodle.LevelVarr.Shaders.ExtraDataVarr.Shaders.FastMathVarr.Shaders.ForceDXCVarr.Shaders.GenerateSymbolsVarr.Shaders.OptimizeVarr.Shaders.SkipCompressionVarr.Shaders.SymbolPathOverrideVarr.Shaders.SymbolsVar