# 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:** 7

<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:** [November 22, 2024, 5:24pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/122 "2024-11-22T17:24:34Z")

</div>

Out of curiosity, what visualization mode was used in the MegaLights demo to show off every single light frustrum uniquely colored?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/2/0b231c4600d2c3f2480fdc14c80f0e1ba1eea6ef.jpeg)

Additionally: I was talking to a colleague about MegaLights scalability- is there a particular reason software RT quality is significantly worse than HWRT?

---

<div class="post-metadata">

**Author:** ![Krzysztof.N](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krzysztof.N](https://forums.unrealengine.com/u/Krzysztof.N)\
**Post date:** [November 22, 2024, 5:50pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/123 "2024-11-22T17:50:16Z")

</div>

> [@jblackwell](#):
>
> Out of curiosity, what visualization mode was used in the MegaLights demo to show off every single light frustrum uniquely colored?

It just an one-off made for the demo in some Blueprints.

> [@jblackwell](#):
>
> I was talking to a colleague about MegaLights scalability- is there a particular reason software RT quality is significantly worse than HWRT?

We didn’t invest much time in it. Some improvements are very simple - increasing screen space ray length, setting up proper biases etc. Some would be harder - tracing mesh SDFs instead of a global SDF.

The question is though whether it makes sense to invest into this path. Given how it will take at least a year or two for games to start shipping with it, likely at that point HWRT will become a requirement for games. It’s really down to deprecating 10x0 series. Those were some amazing GPUs, but maybe a decade later we will be able to skip those :).

---

<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:** [November 22, 2024, 8:00pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/124 "2024-11-22T20:00:36Z")

</div>

I see your point but some studios may be close to release and may update their products to use MegaLights without taking lot of extra time. I mean, some games could be already using it in some months.

Maybe an intermediate point could be the sweet point. Something like appliying the 80-20 rule to this.

PS: I even still didn’t try Software MegaLights. Just as an idea.

---

<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:** [November 22, 2024, 9:17pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/125 "2024-11-22T21:17:53Z")

</div>

a smart studio does not change the rendering method while in late production. you’re wrong there. it adds a lot of xtra time to add changes and fixes to a whole game. or it’s gonna release in a beta state. an indie dev with short dev times may have a chance to update, but a good advice is to stick to the original concept stage of how it looks.

gotta use the engine at stage zero. fresh start. and only alpha stage graphics development. hmmhmm…

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [November 22, 2024, 9:35pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/126 "2024-11-22T21:35:46Z")

</div>

Yeah, most current UE5 releases are using very old versions of UE5.

Black Myth: Wukong is using 5.0

STALKER 2: Heart of Chornobyl is 5.1

Satisfactory pretty sure it’s still 5.2 (they updated a few time in EA)

I wouldn’t expect any large games releasing in the next year to be using 5.5

---

<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:** [November 22, 2024, 9:51pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/127 "2024-11-22T21:51:46Z")

</div>

> [@Krzysztof.N](#):
>
> It just an one-off made for the demo in some Blueprints.

Fair enough. I think better visualization modes would be really helpful for MegaLights usage going forward, although if light complexity works with MegaLights now that would be perfect- just being able to visualize expense and light density as a field rather than per-ray would be a good additional option.

> [@Krzysztof.N](#):
>
> It’s really down to deprecating 10x0 series. Those were some amazing GPUs, but maybe a decade later we will be able to skip those :).

I don’t disagree; it doesn’t even seem like SWRT is providing a meaningful performance win in a lot of cases anymore (at least I’ve heard anecdotally). Is there a point in the near future (EG 5.7) where SWRT will just be fully depricated?

---

<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:** [November 22, 2024, 9:54pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/128 "2024-11-22T21:54:35Z")

</div>

Also, is there a point on the technical path where raytracing.nanite.mode 1 mesh streaming may be fast/efficient enough to allow for real-time use?

---

<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:** [November 22, 2024, 11:03pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/129 "2024-11-22T23:03:29Z")

</div>

Why would you want that? I think it just was like a “patch” to make RT shadows work without (but not fully) black patches. But megalights don’t seem to need it.

---

<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:** [November 23, 2024, 12:46am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/130 "2024-11-23T00:46:35Z")

</div>

What that CVar does, as far as I understand it, is make full-fat nanite geometry get streamed into the RT BLAS, as opposed to the simplified proxy geometry usually used by nanite. The reason that is made RT shadows work is bc RT shadows had discontinuity problems between the GBuffer mesh and proxy mesh- Megalights bypasses it entirely via their screen-space traces.

That said, it’s still not perfect. In areas missing screen information, the proxy mesh still shows through, and especially on certain models, the default mesh can look terrible compared to the nanite mesh. This is why I’m curious if the nanite RT streaming capability looks solvable or not. If it’s not solvable, then a better proxy generation algorithm might be useful.

Of course, if you’re hand-authoring the proxy meshes, whole thing is a moot point anyways.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 23, 2024, 8:54am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/131 "2024-11-23T08:54:11Z")

</div>

Yeah I can confirm I just tested SWRT megalights with my 1080 and it doesn’t work good if at all in my actual project. Costs almost 3ms total which is weird because when I tested it in the template it kinda worked. Maybe it’s just my project, idk. Tried a lot of console commands but no luck.

Edit: It seems that combining Lumen/lower screen resolution with TAA produces a decent amount of performance gains while retaining some level of visual clarity/decency. I’m not sure if it would be more performant without lumen, will try tomorrow, but I’m curious to know if there are any console commands that could also improve performance.

Edit2: Seems lumen does cost a lot more actually.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 23, 2024, 11:17am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/132 "2024-11-23T11:17:18Z")

</div>

Question about SWRT and HWRT: WIll my game automatically detect which type the user has(if support HWRT is enabled in the engine)? Or should the user have to enable HWRT to get the benefits of it?

---

<div class="post-metadata">

**Author:** ![Andre\_S\_G\_Soares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andre\_S\_G\_Soares](https://forums.unrealengine.com/u/Andre_S_G_Soares)\
**Post date:** [November 23, 2024, 3:30pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/133 "2024-11-23T15:30:51Z")

</div>

Is there a forecast to megalights work well with two sided foliage? A incoming update, I mean

---

<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:** [November 23, 2024, 5:54pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/134 "2024-11-23T17:54:53Z")

</div>

Nope, it uses MegaLights with virtual shadow maps as the fallback, SWRT would have to be manually enabled.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 24, 2024, 12:23am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/135 "2024-11-24T00:23:33Z")

</div>

Right, if I have SWRT enabled by default, but also have raytracing enabled by default, will it pick HWRT over SWRT if the person has a RTX card?

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 24, 2024, 12:32am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/136 "2024-11-24T00:32:58Z")

</div>

Is anyone aware of any CVARs that could help improve performance for SWRT+VSM megalights? I got it working decently by lowering resolution + using TAA/upscaling but I definitely can’t have as many lights in an area as I probably could with an RTX card.

---

<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:** [November 24, 2024, 12:33am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/137 "2024-11-24T00:33:55Z")

</div>

I don’t think it’s able to automatically detect that feature switch, no.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 24, 2024, 12:56am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/138 "2024-11-24T00:56:47Z")

</div>

Okay.

Anyway, I did more testing with SWRT+VSM megalights with upscaled resolution(on spotlights) and came to the conclusion that it seems if you don’t use a lot of overlapping lights, then regular lighting is slightly more performant, but if you have a lot of overlaps then megalights is basically required.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 24, 2024, 1:56am UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/139 "2024-11-24T01:56:04Z")

</div>

It seems we can’t enable/disable megalights or change the method on a per-light basis inside of a BP. Will this be possible in the future?

---

<div class="post-metadata">

**Author:** ![Krzysztof.N](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Krzysztof.N](https://forums.unrealengine.com/u/Krzysztof.N)\
**Post date:** [November 25, 2024, 8:09pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/140 "2024-11-25T20:09:18Z")

</div>

> [@jblackwell](#):
>
> Fair enough. I think better visualization modes would be really helpful for MegaLights usage going forward, although if light complexity works with MegaLights now that would be perfect- just being able to visualize expense and light density as a field rather than per-ray would be a good additional option.

Yeah, we should fix lighting complexity. Added it to the todo list.

> [@jblackwell](#):
>
> I don’t disagree; it doesn’t even seem like SWRT is providing a meaningful performance win in a lot of cases anymore (at least I’ve heard anecdotally). Is there a point in the near future (EG 5.7) where SWRT will just be fully depricated?

We don’t have any plans to deprecate SWRT. Mesh SDF tracing indeed can be slower, but Global SDF is usually faster even on new NV GPUs. Global SDF merges entire scene into a single volume, which makes it low quality but constant performance. HWRT performance heavily depends on scene optimizations - things like instance overlap or huge instances with lots of empty space are very costly.

> [@jblackwell](#):
>
> Also, is there a point on the technical path where raytracing.nanite.mode 1 mesh streaming may be fast/efficient enough to allow for real-time use?

Unlikely, but we are working with vendors on a proper Nanite Ray Tracing solution.

> [@jblackwell](#):
>
> If it’s not solvable, then a better proxy generation algorithm might be useful.

It’s also something we have on our todo list.

> [@Resolve](#):
>
> Right, if I have SWRT enabled by default, but also have raytracing enabled by default, will it pick HWRT over SWRT if the person has a RTX card?

Yes.

> [@Resolve](#):
>
> Is anyone aware of any CVARs that could help improve performance for SWRT+VSM megalights?

It’s an experimental feature inside an experimental feature, and at the moment MegaLights only help with VSM projection and shading costs, while shadow map generation is still done per light like before.

> [@Resolve](#):
>
> It seems we can’t enable/disable megalights or change the method on a per-light basis inside of a BP. Will this be possible in the future?

In general I’m conservative with exposing things for an experimental feature, so it depends whether you have a good argument for it.

> [@Andre\_S\_G\_Soares](#):
>
> Is there a forecast to megalights work well with two sided foliage? A incoming update, I mean

Nothing concrete to share, but it’s something on the todo list.

---

<div class="post-metadata">

**Author:** ![Resolve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Resolve](https://forums.unrealengine.com/u/Resolve)\
**Post date:** [November 25, 2024, 8:41pm UTC](https://forums.unrealengine.com/t/megalights-feedback-thread/2051575/141 "2024-11-25T20:41:18Z")

</div>

> [@Krzysztof.N](#):
>
> In general I’m conservative with exposing things for an experimental feature, so it depends whether you have a good argument for it.

Thanks for the answers. Actually per-light doesn’t matter now that I think about it.

Basically my problem is I’ll have SWRT and HWRT players, so how should I detect if they’re HWRT capable? I figured out I can change the shadowing method with default mode and the CVAR.

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

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