r.AllowStaticLighting
r.AllowStaticLighting is a console variable in Unreal Engine 5 (UE5). See what r.AllowStaticLighting does, its values, and how to use this cvar in the Unreal console below.
Category: Renderer · Namespace:
rHelp
Whether to allow any static lighting to be generated and used, like lightmaps and shadowmaps. Games that only use dynamic lighting should set this to 0 to save some static lighting overhead.
Usage
Unreal console (open with ~)
> r.AllowStaticLighting 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.AllowLandscapeShadowsVarr.AllowMultiGPUInEditorVarr.AllowOcclusionQueriesVarr.AllowPointLightCubemapShadowsVarr.AllowPrecomputedVisibilityVarr.AllowSimpleLightsVarr.AllowSubPrimitiveQueriesVarr.AllowTexture2DArrayCreationVarr.AlsoUseSphereForFrustumCullVarr.AmbientOcclusion.AsyncComputeBudgetVarr.AmbientOcclusion.ComputeVarr.AmbientOcclusion.Compute.SmoothVar