# Switch Lumen to NonLumen at runtime

**URL:** <https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729>\
**Category:** Rendering\
**Tags:** unreal-engine, Platform, UE5-0, Lumen\
**Created:** [September 26, 2021, 2:38am UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729 "2021-09-26T02:38:58Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3d410f4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3d410f4a](https://forums.unrealengine.com/u/anonymous_user_3d410f4a)\
**Post date:** [September 26, 2021, 2:38am UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/1 "2021-09-26T02:38:58Z")

</div>

Is it possible to switch rendering settings at runtime?

Such as switching Lumen to NonLumen at runtime.

Here is an example.

For High Performance PC users, Lumen is ON.

For Low Performance PC users, Lumen is OFF and other rendering settings are adapted.

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 26, 2021, 3:00am UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/2 "2021-09-26T03:00:54Z")

</div>

Yes you can do this, either via postprocess settings or just using console commands.

---

<div class="post-metadata">

**Author:** ![PolygonArt\_WEN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PolygonArt\_WEN](https://forums.unrealengine.com/u/PolygonArt_WEN)\
**Post date:** [June 21, 2022, 4:51pm UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/3 "2022-06-21T16:51:27Z")

</div>

And those console commands are?

I can’t find anything about console commands for lumen.

---

<div class="post-metadata">

**Author:** ![TheArchitect](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheArchitect](https://forums.unrealengine.com/u/TheArchitect)\
**Post date:** [June 22, 2022, 6:31am UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/4 "2022-06-22T06:31:19Z")

</div>

If you type r.Lumen, you’ll get a bunch of suggestions. I believe what you’re looking for is r.Lumen.DiffuseIndirect.Allow ?

---

<div class="post-metadata">

**Author:** ![PolygonArt\_WEN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PolygonArt\_WEN](https://forums.unrealengine.com/u/PolygonArt_WEN)\
**Post date:** [June 22, 2022, 11:53am UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/5 "2022-06-22T11:53:43Z")

</div>

This turns lumen reflections off but I still can’t enable ScreenSpaceReflections.

r.ReflectionMethod is just ignored

---

<div class="post-metadata">

**Author:** ![Kulagin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kulagin](https://forums.unrealengine.com/u/Kulagin)\
**Post date:** [December 19, 2023, 7:01pm UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/6 "2023-12-19T19:01:48Z")

</div>

> [@PolygonArt\_WEN](#):
>
> And those console commands are?

It’s:

```txt
r.DynamicGlobalIlluminationMethod
0 - None. Global Illumination can be baked into Lightmaps but no technique will be used for Dynamic Global Illumination.
1 - Lumen. Use Lumen Global Illumination for all lights, emissive materials casting light and SkyLight Occlusion. Requires 'Generate Mesh Distance Fields' enabled for Software Ray Tracing and 'Support Hardware Ray Tracing' enabled for Hardware Ray Tracing.
2 - SSGI. Standalone Screen Space Global Illumination. Low cost, but limited by screen space information.
3 - RTGI. Ray Traced Global Illumination technique. Deprecated, use Lumen Global Illumination instead.
4 - Plugin. Use a plugin for Global Illumination.

r.ReflectionMethod
0 - None. Reflections can come from placed Reflection Captures, Planar Reflections and Skylight but no global reflection method will be used.
1 - Lumen. Use Lumen Reflections, which supports Screen / Software / Hardware Ray Tracing together and integrates with Lumen Global Illumination for rough reflections and Global Illumination seen in reflections.
2 - SSR. Standalone Screen Space Reflections. Low cost, but limited by screen space information.
3 - RT Reflections. Ray Traced Reflections technique. Deprecated, use Lumen Reflections instead.

```

Also, note, that scalability has to be high or epic in order for those to have effect. If you have illumination scalability at low, executing `r.DynamicGlobalIlluminationMethod 1` won’t have any effect: it might switch global illumination system from None to Lumen, technically, but you won’t see any difference and there won’t be any performance impact either. But once you also switch the `sg.GlobalIlluminationQuality` to 2 or 3, then it will work. Same for the reflections, `sg.ReflectionQuality` should be 2 or 3.

> [@PolygonArt\_WEN](#):
>
> I can’t find anything about console commands for lumen.

Generate consolehelp.html in the editor, then you can search all console commands available to you in the generated .html file.

---

<div class="post-metadata">

**Author:** ![Dalgaard.Alex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dalgaard.Alex](https://forums.unrealengine.com/u/Dalgaard.Alex)\
**Post date:** [December 4, 2024, 5:51pm UTC](https://forums.unrealengine.com/t/switch-lumen-to-nonlumen-at-runtime/252729/7 "2024-12-04T17:51:29Z")

</div>

Yes. This Cvar command will turn Lumen GI on or off.  
1# r.Lumen.DiffuseIndirect.HalfRes=1  
2# r.Lumen.ScreenProbeGather.ScreenSpaceBentNormal=0  
3# r.Lumen.DiffuseIndirect.SSAO=1  
4# r.Lumen.DiffuseIndirect.TemporalAccumulation=0 (May show more noise and flickering)

Or/and r.DynamicGlobalIlluminationMethod=2

Test these and see if that can help to get better performance without turning GI off completely. But to just turn it off then use r.Lumen.DiffuseIndirect.Allow=0
