# MegaLights feedback thread

**URL:** <https://forums.unrealengine.com/t/megalights-feedback-thread/2051575>\
**Category:** Rendering\
**Tags:** unreal-engine, MegaLights, Rendering, Lighting\
**Created:** [October 3, 2024, 3:36pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575 "2024-10-03T15:36:16Z")\
**Posts on this page:** 20\
**Page:** 12

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 6, 2025, 1:21pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/227 "2025-01-06T13:21:12Z")

</div>

Hi @JaroMast,  
Can you share a small project that reproduces this issue? Or if not possible could you provide more info regarding the level where you are seeing this issue:

- How many actors are there in the level?
- How many ISM or HISM actors?
- How many instances per ISM/HISM?
- Are the ISM using Nanite meshes?
- How many skeletal meshes?

Does the time spent in `RayTracing_FinishGatherInstances` change significantly between editor and running the game? If so, do you have blueprints or other logic that only spawns instances when running the game and not in editor?

Thanks!

---

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 6, 2025, 2:28pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/228 "2025-01-06T14:28:50Z")

</div>

@Miguel1900 I’ve taken a look at the project you shared and here are my findings using [Unreal Insights](https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-insights-in-unreal-engine):

When the fans are enabled, there’s 13ms overhead on render thread which can be avoided by using `r.Visibility.LocalLightPrimitiveInteraction 0`.

There’s also about 15ms overhead on game thread, executing the tick of the fan actors (which is not MegaLights related). Of those 15ms, ~5ms is caused by `UpdateOverlaps()` which can be avoided by disabling `Generate Overlap Events` or collision altogether on the relevant components.

* * *

`CreateLightPrimitiveInteractions` overhead which is avoided using `r.Visibility.LocalLightPrimitiveInteraction 0`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/e/bae4ef8c3577d659fedd4a5062253bfcd7ab4bbf.png)

`UpdateOverlaps()` overhead:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/9/6891bc53dee9cfe559f17b06cd4e5c0d1256597a.png)

After disabling `Generate Overlap Events`:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/a/d/fadcb8684ee6337b722e44d9282314668ed981fa.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/3/1833a98a4cac2c7f4cfa679cda78ee76f91863d8.jpeg)

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 8, 2025, 1:44pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/229 "2025-01-08T13:44:10Z")

</div>

Hi @TiagoCostaUE ,

Thank you very much for your time testing and the detailed insights!! So glad.

Following it, I have been able to improve the performance a little and now it’s loosing around ~30% performance when spinning, instead of ~50%. I have been making some additional tests too, and noticed if enabling Nanite in the spinning meshes would improve the performance quite a bit. Additionally, if completely disabling collisions on those spinning meshes, performance wouldn’t drop and would maintain at 100%.

I know this is not directly related to ML, but anyone knows if this should be normal?: many spinning actors would heavily hit the performance **due to their collisions** (even if just Query, no Physics).

@TiagoCostaUE , I also noticed when using RT shadows the performance won’t drop even with collisions enabled. I think ML relies in RT shadows, right? Couldn’t them benefits from this RT shadows ‘feature’?

Thank you again and best regards!

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 16, 2025, 6:28pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/230 "2025-01-16T18:28:00Z")

</div>

Hi @TiagoCostaUE @Krzysztof.N ,

Noticed something regarding ML + volumetric fog (enabled with r.MegaLights.Volume 1)

In some situations, it’s like “projecting” a shadow (a silhouette) over the fog, from a point where there is no a light. And it varies depending on the angle:

 ![Captura de pantalla 2025-01-16 192445](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/a/adae27a4478490a9166d33321a68f184ebfc3164.png)

---

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 16, 2025, 8:00pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/231 "2025-01-16T20:00:11Z")

</div>

Does using `r.MegaLights.Volume.HZBOcclusionTest=0` prevent that issue?

[I fixed a related bug last week](https://github.com/EpicGames/UnrealEngine/commit/3fee2993de016f3747de1411c275f4da0086b5d7) in ue5-main and will try to get it integrated into a 5.5 hotfix. Let me know if you are able to manually integrate and test that change locally and whether it fixes the issue.

Otherwise, are you able to reproduce this issue in a project that you could share with us for further investigation?

Thanks!

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 16, 2025, 8:34pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/232 "2025-01-16T20:34:06Z")

</div>

Yes, that cvar seems to prevent it.

Also tested in 5.6 from the 12th and the issue was there too, if I’m not wrong. I will try to isolate the issue in a project and share it with you.

PS off topic: in main branch also noticed Lumen reflections (spotted in a water layer material) being too bright and/or contrasted, not corresponding with the Screen Traces part. In 5.5 was working fine. Will try to include it in that project too, but next week probably, as I’m releasing my game this one! O.o

---

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 17, 2025, 7:36pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/233 "2025-01-17T19:36:42Z")

</div>

Is your project overriding `r.VolumetricFog.GridPixelSize` with a value that is not a power-of-2?  
We have just found a bug that causes artifacts in fog when using such values and are working on a fix.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 18, 2025, 3:19pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/234 "2025-01-18T15:19:33Z")

</div>

Oh, yes! 5

Great deduction capabilities. For the moment I have disabled it with the cvars we commented before (volume and/or occlusion) without visual impact. In which situation could I see a visual difference, in the case this bug would exist?

Thanks!

---

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 18, 2025, 3:31pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/235 "2025-01-18T15:31:36Z")

</div>

[Commit 083192d in ue5-main](https://github.com/EpicGames/UnrealEngine/commit/083192dfeb46bc6498074c0bd8103a8088ca3023) submitted yesterday should fix the issue then.

`r.MegaLights.Volume.HZBOcclusionTest` is a performance optimization, so it should be fine to keep it disabled until you have a build with the fix.

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 18, 2025, 5:17pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/236 "2025-01-18T17:17:00Z")

</div>

Thank you Tiago! Testing next week!

---

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [January 24, 2025, 11:44am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/237 "2025-01-24T11:44:54Z")

</div>

Needing more time, finally.

In the meanwhile, can we say this is the technologically most avanced game in the world because of being, maybe, the world’s first game using MegaLights + all UE rendering techs?

> [@GameTechBench, the next-gen GPU benchmark is here!](https://forums.unrealengine.com/t/gametechbench-the-next-gen-gpu-benchmark-is-here/2282599):
>
> I’m so excited to announce I have published my first Steam game! And, maybe, the first game in the world using Unreal 5.5 with Nanite, Lumen, VSMs, Megalights… I really hope you like it! Tired of synthetic benchmarks that fail to reflect your GPU’s real gaming performance? Welcome to the benchmark that redefines how graphics power is measured. GameTechBench delivers a visual experience leveraging cutting-edge real-world gaming technologies and profession…

---

<div class="post-metadata">

**Author:** ![jblackwell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jblackwell](https://forums.unrealengine.com/u/jblackwell)\
**Post date:** [January 27, 2025, 7:11pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/238 "2025-01-27T19:11:43Z")

</div>

From the conversation in the lumen thread, Megalights currently does not support translucency. Is Megalight translucency expected to be supported in UE 5.6? Colored shadows as well, for that matter?

---

<div class="post-metadata">

**Author:** ![TiagoCostaUE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TiagoCostaUE](https://forums.unrealengine.com/u/TiagoCostaUE)\
**Post date:** [January 28, 2025, 7:46pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/239 "2025-01-28T19:46:51Z")

</div>

> Is Megalight translucency expected to be supported in UE 5.6?

Yeah, we are currently working on this and the goal is to have some form of support for 5.6.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [January 28, 2025, 8:34pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/240 "2025-01-28T20:34:41Z")

</div>

5.5.2 looking good, dudes. lowpoly masked shadows are working again. love to see it. i can play with the lights again. : D

functional screenshots. don’t mind the jaggies. it’s not realtime.

 ![01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/2/d92dff7a1ef2c1fc7df50e1eaa7e6c5bdb235f12.jpeg)  
 ![02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/e/ccee526fcfe479b056df87ee4298d6b896b029ca.jpeg)  
 ![03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/2/b027b8fb99cd5772a9d1b3a694d09d37dd6d2876.jpeg)

“low poly” ism foliage on the board. will figure how to spam it nicely and efficient. there’s a lil threshold radius around mega point lamps (pic 03) but… it’s fixable with a rebalance of the ambient light. this shot is a completely stage 0 static test, anyway. baked gi and volumes and all. hmm…

---

<div class="post-metadata">

**Author:** ![TheKJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheKJ](https://forums.unrealengine.com/u/TheKJ)\
**Post date:** [February 4, 2025, 9:43am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/242 "2025-02-04T09:43:07Z")

</div>

Anti-Aliasing and Spatial pixel filling have nothing to do with each other.

FSR1 can’t even Anti-Alias jagged edges.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [February 4, 2025, 10:09am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/243 "2025-02-04T10:09:19Z")

</div>

@Aresias i already confirmed it. disabling taa will show you the noise. even more so on lower render resolution. and… i posted the solution. yes… at this point taa has to be used and in a game using megalights should be enforced to antialias the stochastic pattern of megalights. it’s just how it works.

upscaling has nothing todo with it. unless upscaling and antialiasing are combined in one pass, which is what tsr does (?).

@TheKJ why you fall for this “clown” jebait at this point? as mentioned, i confirmed it. chill

---

<div class="post-metadata">

**Author:** ![Aresias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aresias](https://forums.unrealengine.com/u/Aresias)\
**Post date:** [February 4, 2025, 7:25pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/244 "2025-02-04T19:25:01Z")

</div>

You can set r.ScreenPercentage to 100 too with FSR 1.0 but i can’t try it since the ported plugin version doesn’t support 5.5.  
But you may be right i’m not sure if it can do AA if set to 100%, you can with FSR2/3 but maybe not with FSR 1.0

Anyway SMAA can only detect L, U and Z shape and blur the surrounding pixels it also destroy the UI by adding rounding edges to every sharp edges like fonts if done just before the final image, i was using SMAA injector back in the days.

For Megalights why i don’t reproduce for static objects ?  
I do have more noise with the moving character but the amount of noise is acceptable.  
Have a look at all my settings in this new video.  
There are many settings to set correctly to force rendering at 100% resolution and without AA.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [February 4, 2025, 7:58pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/245 "2025-02-04T19:58:33Z")

</div>

your video is in 4k obviously. way higher pixel density for your eyeballs. if i download it and watch it native (cropped) i can still spot the artefacts on the shadow edges.

---

<div class="post-metadata">

**Author:** ![Aresias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Aresias](https://forums.unrealengine.com/u/Aresias)\
**Post date:** [February 4, 2025, 8:06pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/246 "2025-02-04T20:06:30Z")

</div>

Of course, if you zoom in at 1000%, you’ll see that there’s noise.  
My point is the noise is very low, not like the other videos you are all showing.  
If there was a shadow/light algorithm that didn’t produce artefacts and that adapted well to multiple lights and adapt instantly to moving lights, all the other algorithms would have been abandoned a long time ago.  
Almost all the algorithms in existence today are the result of research carried out decades ago (but slightly adapted for rendering use cases) and which are just being applied today in real time because we now have the compute power to do it.

The artefacts errors to me doesn’t look higher than the lack of AA that produces stairs effect errors for straight diagonal lines.  
This is like the Nyquist–Shannon sampling theorem, if you want the shadow to look perfectly straight you would need to already oversample the shadow for it to look good.

---

<div class="post-metadata">

**Author:** ![glitchered](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/glitchered/32/768299_2.png) [@glitchered](https://forums.unrealengine.com/u/glitchered)\
**Post date:** [February 4, 2025, 8:20pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/247 "2025-02-04T20:20:49Z")

</div>

i don’t zoom in. i’m not one of those an\*l guys. the average game with real colors and textures (aka my prototype) does not expose that. in harsh lighting environments it’s kinda noticable. nothing to cry about tho, tbh. yes.

just to prove the point… your video cropped to 1080p pixels. you should download and watch it in fullscreen to see what i would see on my screen. a lil bit of edge noise on static mesh shadows. hmm…

anyway… _moving on_

[Previous page](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575.md?page=11)

[Next page](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575.md?page=13)
