# Megalights Screen Tiling- how does it work?

**URL:** <https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988>\
**Category:** Rendering\
**Tags:** unreal-engine, MegaLights\
**Created:** [March 5, 2025, 9:50am UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988 "2025-03-05T09:50:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 5, 2025, 9:50am UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/1 "2025-03-05T09:50:43Z")

</div>

I’ve been pushing Megalights and when I’ve added lots of lights like this, have been running into these weird screen space issues. Wondering if anyone else has seen this and understands what starts to cause these screen space issues?

You can see in the screenshots that in the bright areas there’s several lines to lights, megalights is working well, but on the darker area, no rays are cast at all.

 ![Screenshot (6)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/0/670d7afba56cf9a2de6204cce3e7a56a3b282592.jpeg)  
 ![Screenshot (19)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/1/28113b4f0e1844668b671cadc079b7642ad5b81f.jpeg)

---

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 5, 2025, 9:55am UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/2 "2025-03-05T09:55:02Z")

</div>

I tabbed out to write this, went back to the editor and it had fixed the tiling issue. Rays casting as expected in debug view.

But now light functions aren’t working.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/4/2f4d6111797ca0238ef4ab692bb0f138cf263b37.jpeg)

---

<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:** [March 6, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/3 "2025-03-06T13:17:24Z")

</div>

Hi, maybe light function atlas is overflowing and needs to be made larger? You can check your log for light function atlas errors.

Otherwise hard to say from screenshots. I could take a look through if you have a simple repro which you can share.

---

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 11, 2025, 3:44pm UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/4 "2025-03-11T15:44:50Z")

</div>

Thanks for responding. I had increased my light function atlas size up to 16 as I have tons of lights.

I worked out the light functions not working was due to them not being compatible with light function atlas. Not sure why it wasn’t an issue previously.

I ended up disabling megalights with the console command r.Megalights.Allowed 0, which tanked the FPS but allowed me to get the renders done.

If I am to create a simple reproduction I will send your way 🙂

---

<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:** [March 11, 2025, 4:08pm UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/5 "2025-03-11T16:08:59Z")

</div>

why are you using so many point light there in the first place? you could achieve the same effect with a long a thin rect light. hmm…

---

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 14, 2025, 10:11am UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/6 "2025-03-14T10:11:12Z")

</div>

I used to use a long thin rect light, but many point lights achieves a much better effect for me. That fringing & overlapping of many spot lights is exactly what I want.

I also find rect lights tend to be more noisy with Lumen than spot lights.

---

<div class="post-metadata">

**Author:** ![DBCS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DBCS](https://forums.unrealengine.com/u/DBCS)\
**Post date:** [March 27, 2025, 5:00pm UTC](https://forums.unrealengine.com/t/megalights-screen-tiling-how-does-it-work/2375988/7 "2025-03-27T17:00:15Z")

</div>

Hi, I’ve re-created this in a new project & sent you a DM.
