# Ray tracing light count

**URL:** <https://forums.unrealengine.com/t/ray-tracing-light-count/691798>\
**Category:** Rendering\
**Tags:** light, Raytracing, unreal-engine\
**Created:** [November 16, 2022, 7:34am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798 "2022-11-16T07:34:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![CediScount](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/cediscount/32/593726_2.png) [@CediScount](https://forums.unrealengine.com/u/CediScount)\
**Post date:** [November 16, 2022, 7:34am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/1 "2022-11-16T07:34:22Z")

</div>

Hello guys !

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/3/d53c9c07cfd600bfb06cbda9f604a501879f59f5.jpeg)

Since the 5.1 update a warning is show when the maximum number of active ray tracing lights is equal to or greater than ‘RAY\_TRACING\_LIGHT\_COUNT\_MAXIMUM’

I would like to know where i can upgrade this value or find an other solution

Actually all my light have a draw distance but even if i don’t render them the light is still count on a current actuve ray tracing light

Thanks 😃

---

<div class="post-metadata">

**Author:** ![andresmedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andresmedia](https://forums.unrealengine.com/u/andresmedia)\
**Post date:** [December 16, 2022, 5:33pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/2 "2022-12-16T17:33:33Z")

</div>

Im having the same issue, any fix for this?

---

<div class="post-metadata">

**Author:** ![Mike\_Seawell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mike\_Seawell](https://forums.unrealengine.com/u/Mike_Seawell)\
**Post date:** [December 19, 2022, 7:16pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/3 "2022-12-19T19:16:54Z")

</div>

I’m also experiencing this same issue. There is the command “r.RayTracing.GlobalIllumination.MaxLightCount” but it doesn’t seem to have any impact on the scene or the error message displayed in the viewport.

---

<div class="post-metadata">

**Author:** ![Anthony\_Grieveso](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Grieveso](https://forums.unrealengine.com/u/Anthony_Grieveso)\
**Post date:** [December 20, 2022, 4:11pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/4 "2022-12-20T16:11:44Z")

</div>

I’m also experiencing this issue and have not found a solution yet.

---

<div class="post-metadata">

**Author:** ![RedCraft86](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redcraft86/32/1154149_2.png) [@RedCraft86](https://forums.unrealengine.com/u/RedCraft86)\
**Post date:** [December 24, 2022, 3:47am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/5 "2022-12-24T03:47:33Z")

</div>

Problem for me too

---

<div class="post-metadata">

**Author:** ![RedCraft86](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redcraft86/32/1154149_2.png) [@RedCraft86](https://forums.unrealengine.com/u/RedCraft86)\
**Post date:** [January 4, 2023, 1:52am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/6 "2023-01-04T01:52:57Z")

</div>

I got a semi-decent solution to those who DON’T intend on using ray tracing but only wants that message to go away  
Basically go to all your lights, search “ray tracing” in the details and disable the 2 options that show up under the “Light” category. If you can change the Ray Traced Shadows option, disable that too

If you intend on using Ray Tracing, I unfortunately still don’t know how to increase the limit

---

<div class="post-metadata">

**Author:** ![dmlest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmlest](https://forums.unrealengine.com/u/dmlest)\
**Post date:** [March 9, 2023, 1:47am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/7 "2023-03-09T01:47:33Z")

</div>

Would like to see a follow up on this!

---

<div class="post-metadata">

**Author:** ![TeaPack2561](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeaPack2561](https://forums.unrealengine.com/u/TeaPack2561)\
**Post date:** [March 12, 2023, 4:38pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/8 "2023-03-12T16:38:20Z")

</div>

Same here, no solution yet…

It works on 4.27, but the lighting effect is not good.

---

<div class="post-metadata">

**Author:** ![Himiko\_bln](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/himiko_bln/32/1018415_2.png) [@Himiko\_bln](https://forums.unrealengine.com/u/Himiko_bln)\
**Post date:** [March 17, 2023, 8:45am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/9 "2023-03-17T08:45:21Z")

</div>

I also have this problem.

---

<div class="post-metadata">

**Author:** ![GameHatcher00](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamehatcher00/32/679839_2.png) [@GameHatcher00](https://forums.unrealengine.com/u/GameHatcher00)\
**Post date:** [March 21, 2023, 8:25pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/10 "2023-03-21T20:25:38Z")

</div>

I too have this issue but I wonder if the solution isn’t just to add the Nvidia RTXGI? I know it was working in UE4 but I haven’t tried it in UE5 yet. Has anyone else?

---

<div class="post-metadata">

**Author:** ![GameHatcher00](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamehatcher00/32/679839_2.png) [@GameHatcher00](https://forums.unrealengine.com/u/GameHatcher00)\
**Post date:** [March 21, 2023, 9:17pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/11 "2023-03-21T21:17:40Z")

</div>

Disregard! I found out UE 5.1 isn’t supported by RTXGI at this time.

---

<div class="post-metadata">

**Author:** ![TeaPack2561](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeaPack2561](https://forums.unrealengine.com/u/TeaPack2561)\
**Post date:** [March 22, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/12 "2023-03-22T12:53:25Z")

</div>

Tried it with NVRTX branch for UE5.1 and limit is there.  
NVRTX should have RTXGI included.

> **[NVIDIA RTX Branch (NvRTX)](https://developer.nvidia.com/game-engines/unreal-engine/rtx-branch)**
>
> Shortens development cycles and creates more stunning visuals.

Also found this response in another thread, but did not test it yet:

The new warning you are seeing is only for real-time rendering, which has always had a limit of 256 ray traced lights. Now at least you know when you’re going over the limit and can adjust your settings accordingly. This warning does not apply to the path tracer, which has practically no limit on the number of lights. (There is technically an internal limit but it would be very hard to reach.)

---

<div class="post-metadata">

**Author:** ![markguilard1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markguilard1](https://forums.unrealengine.com/u/markguilard1)\
**Post date:** [April 9, 2023, 8:23am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/13 "2023-04-09T08:23:06Z")

</div>

me too the same problem. how to solve it?

---

<div class="post-metadata">

**Author:** ![TeaPack2561](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TeaPack2561](https://forums.unrealengine.com/u/TeaPack2561)\
**Post date:** [May 19, 2023, 12:15pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/14 "2023-05-19T12:15:47Z")

</div>

> [@CediScount](#):
>
> RAY\_TRACING\_LIGHT\_COUNT\_MAXIMUM

Just solved it.  
Download an uncompiled version of UE NvRTX. follow NvRTX installation until you are in Visual Studio just before building. Search for RAY\_TRACING\_LIGHT\_COUNT\_MAX and change value of LIGHT and DECAL, like in picture bellow, to 2048. You have to set up the search to look for file contents. Save and build UE. Run UE.

 ![RAY_TRACING_LIGHT_COUNT_MAXIMUM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/c/23ce252f5b0ad20985754049815730e0339ea590.png)

You probably do not need NvRTX, any uncompiled version uf UE would work, just NvRTX handles Ray traced lights much better.

---

<div class="post-metadata">

**Author:** ![rhonpaul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rhonpaul](https://forums.unrealengine.com/u/rhonpaul)\
**Post date:** [August 11, 2023, 5:51am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/15 "2023-08-11T05:51:10Z")

</div>

Hi! I’ve done this. but the plugins are not compatible. any help what could be done? thank you!

---

<div class="post-metadata">

**Author:** ![mmamdouhkassab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mmamdouhkassab](https://forums.unrealengine.com/u/mmamdouhkassab)\
**Post date:** [November 13, 2023, 3:48pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/16 "2023-11-13T15:48:24Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/d/f6d51442f25d4569e82f6475a3350ca9e2242e06.jpeg)  
You need to download the version that’s compatible with your plugins, then you can go to the offical unreal engine source files that you downloaded from epic games launcher. then go to the plugins folder and copy the plugins and it will work.

---

<div class="post-metadata">

**Author:** ![graphic-i](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@graphic-i](https://forums.unrealengine.com/u/graphic-i)\
**Post date:** [September 18, 2024, 1:08pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/17 "2024-09-18T13:08:25Z")

</div>

I suddenly got this error notification and can’t fix it in UE5.3 even tho, I disabled raytracing in all the lights and even in the project settings !!??? 😕

---

<div class="post-metadata">

**Author:** ![rockshurt75](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rockshurt75/32/710355_2.png) [@rockshurt75](https://forums.unrealengine.com/u/rockshurt75)\
**Post date:** [September 27, 2024, 2:09pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/18 "2024-09-27T14:09:35Z")

</div>

Notify me if there’s a solution please.

---

<div class="post-metadata">

**Author:** ![Black\_12](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Black\_12](https://forums.unrealengine.com/u/Black_12)\
**Post date:** [November 14, 2024, 5:43am UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/19 "2024-11-14T05:43:01Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/a/77a4a2b059a606f11e32c8a4e7984d5e6c125fa2.png)

In the Details panel, uncheck this

---

<div class="post-metadata">

**Author:** ![mblmv240](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mblmv240](https://forums.unrealengine.com/u/mblmv240)\
**Post date:** [December 5, 2024, 8:42pm UTC](https://forums.unrealengine.com/t/ray-tracing-light-count/691798/20 "2024-12-05T20:42:34Z")

</div>

Thanks, this solution of unchecking “Affect Ray Tracing Reflections” worked for me. Using UE5.3 and the warning has disappeared.
