# Epic's GPUlightmass

**URL:** <https://forums.unrealengine.com/t/epics-gpulightmass/139357>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [March 5, 2020, 12:52pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357 "2020-03-05T12:52:56Z")\
**Posts on this page:** 20\
**Page:** 15

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [March 25, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/281 "2022-03-25T14:41:05Z")

</div>

> [@jon\_eg](#):
>
> We were able to reproduce a “DEVICE LOST” crash launching Android Vulkan preview with those settings. Is that what you are getting? Does the Android Vulkan preview work for you if you revert any of those settings, and if so which ones?

I don’t get any crash in 4.27.2 (at least Editor keeps working) when I switch from SM5 to Android Vulkan preview and back. The only thing that happens is that Editor simply won’t switch. So say I am in SM5 and I select Android Vulkan in the menu. Menu would close, nothing would happen on the screen and when I would go back to the menu - it would still be showing SM5 option selected.

I don’t recall what happens in UE5p2, I can check when I get off work. If there was a crash, I am fairly certain I pressed button from the crash log window.

---

<div class="post-metadata">

**Author:** ![jon\_eg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jon_eg/32/924203_2.png) [@jon\_eg](https://forums.unrealengine.com/u/jon_eg)\
**Post date:** [March 25, 2022, 5:37pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/282 "2022-03-25T17:37:33Z")

</div>

> [@maxbrown](#):
>
> Reducing this value to 1.0 fixes most of the problems but still some white splotches are visible on some edges of walls.

I see the same splotch in the scene you sent, but it appears to be the reflection captures. It goes away if I rebuild the captures from the Build menu.

---

<div class="post-metadata">

**Author:** ![jon\_eg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jon_eg/32/924203_2.png) [@jon\_eg](https://forums.unrealengine.com/u/jon_eg)\
**Post date:** [March 25, 2022, 6:36pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/283 "2022-03-25T18:36:59Z")

</div>

> [@Arkiras](#):
>
> This problem is ubiquitous and it is an issue with the denoiser.

I was able to reproduce this in the demo scene that you sent. While it’s true that the denoiser is the source of the colored artifacts, the absolute values of those dark levels in the texture is extremely small and the artifacts wouldn’t be visible at a normal exposure. You have a large manual exposure set on the scene, EV100 of -6.19. It’s like taking a jpeg of a dark scene into photoshop and setting the brightness way up. If you run without the denoiser and with the exposure cranked up you can see that there is very little information available from the bake. I think your best choice of action is to address how you are lighting and exposing the scene so that you aren’t relying on extremely low levels of light in such large areas. I will also submit this to the devs to see if there is anything that can be improved in the future, but that’s your best choice of action for immediate results.

(If this is a regression from 4.27 please let me know but I don’t think anything changed with the denoiser.)

---

<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:** [March 25, 2022, 7:15pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/284 "2022-03-25T19:15:13Z")

</div>

> [@jon\_eg](#):
>
> If you run without the denoiser and with the exposure cranked up you can see that there is very little information available from the bake

If you set the GI samples to 4k and watch the light build you get a nice high quality, clean result right up until the denoiser kicks in and destroys it.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/1/791acef4016238babffbb1b98a4c0bd28fbde6f2.jpeg "GPU Lightmass denoiser at work") ](https://www.youtube.com/watch?v=wznIggF9koM)

I know this is on the very edge of reasonable light intensity, but this is really no excuse for the denoiser to be actively destroying light bakes.

> [@jon\_eg](#):
>
> I think your best choice of action is to address how you are lighting and exposing the scene so that you aren’t relying on extremely low levels of light in such large areas

I appreciate the advice, but I’m just reporting issues I encounter so that it can be improved. I plan to continue using CPU lightmass until GPU lightmass can match/exceed its quality/featureset.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [March 26, 2022, 3:39am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/285 "2022-03-26T03:39:10Z")

</div>

> [@jon\_eg](#):
>
> We were able to reproduce a “DEVICE LOST” crash launching Android Vulkan preview with those settings. Is that what you are getting? Does the Android Vulkan preview work for you if you revert any of those settings, and if so which ones?

Indeed I got a crash (just tested). Here is crash log: [Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:\build\++UE5\Sync\Engine - Pastebin.com](https://pastebin.com/auJucfJf)

---

<div class="post-metadata">

**Author:** ![nSpeednSpeed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nSpeednSpeed](https://forums.unrealengine.com/u/nSpeednSpeed)\
**Post date:** [March 26, 2022, 7:01am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/286 "2022-03-26T07:01:51Z")

</div>

@jon_eg

There is an issue that I’ve submitted a ticket but got ignored, that is a deal breaker for GPULM.

If you have a stationary directional light (and static skylight), then the volumetric fog will be unshadowed everywhere, so you will see fog even in dark places.

With CPU Lightmass of course it works correctly

With GPU Lightmass and static directional light the fog works correctly, the problem is only with stationary light.

This happens both in UE4 4.27, and UE5 p2/github build.

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [March 26, 2022, 7:54pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/287 "2022-03-26T19:54:11Z")

</div>

hi @motorsep, @nSpeednSpeed. Raised a bug with support and the reply is that this is an Nvidia problem.  
For me, this only occurs in one specific Marketplace project which of course has been converted from 4.27 and uses GPU instead of CPU. I also expect that many developers are using many drivers from 472.15 to 511.15 just released. The other problem is nobody has the same hardware ie GTX 10xx or RTX2xxx or RTX3xxx series and GPU problems and is very dependent on the Dedicated GPU Memory Size 2GB, 4GB, 8GB.  
It does not matter whether its D3 D12 or D3 D11

Here is the rather good response to the GPU I reported

> Hello,
> 
> This is an issue we are waiting for Nvidia to address. You can track the bug on our end here: [https://issues.unrealengine.com/issue/UE-92814](https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.unrealengine.com%2Fissue%2FUE-92814&data=04%7C01%7C%7Cd5560bcfad87428408e308da0d0c14e6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637836642780282436%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ekVw3otjQvc2gG8Sm6NC3qx7Qiw%2F1Eqbxu4J3xiYqaE%3D&reserved=0).
> 
> There is no exact workaround for this issue. Some people see the problem; others do not. A workaround may work for one person but not another. It is very dependent on the hardware and drivers, which differ from person to person. There are a lot of forum entries out there where people talk about how they get around the issue. I suggest checking those out for things to try.
> 
> Thanks,
> 
> Patrick

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [March 26, 2022, 9:11pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/288 "2022-03-26T21:11:06Z")

</div>

> [@Jimbohalo10](#):
>
> This is an issue we are waiting for Nvidia to address. You can track the bug on our end here: [https://issues.unrealengine.com/issue/UE-92814](https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fissues.unrealengine.com%2Fissue%2FUE-92814&data=04%7C01%7C%7Cd5560bcfad87428408e308da0d0c14e6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637836642780282436%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ekVw3otjQvc2gG8Sm6NC3qx7Qiw%2F1Eqbxu4J3xiYqaE%3D&reserved=0).

I looked at that report and that’s not the crash I get. This is my crash log: [Assertion failed: CurrentGPUVirtualAddress != 0 [File:D:\build\++UE5\Sync\Engine - Pastebin.com](https://pastebin.com/auJucfJf)

---

<div class="post-metadata">

**Author:** ![jon\_eg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jon_eg/32/924203_2.png) [@jon\_eg](https://forums.unrealengine.com/u/jon_eg)\
**Post date:** [March 26, 2022, 10:47pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/289 "2022-03-26T22:47:31Z")

</div>

> [@Arkiras](#):
>
> I know this is on the very edge of reasonable light intensity, but this is really no excuse for the denoiser to be actively destroying light bakes.

Agreed this is buggy behavior and hopefully it can be fixed. GPU Lightmass uses Intel’s Open Image Denoise library (as does the path tracer), but perhaps it is possible to prevent it from doing that by adjusting its options or how the data is fed to it, or perhaps a fix can come from the library itself.

We haven’t seen this come up before, so thanks for the test case.

---

<div class="post-metadata">

**Author:** ![jon\_eg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jon_eg/32/924203_2.png) [@jon\_eg](https://forums.unrealengine.com/u/jon_eg)\
**Post date:** [March 26, 2022, 10:51pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/290 "2022-03-26T22:51:49Z")

</div>

This crash is in DX12. Are you saying that when you launch Anroid Vulkan Preview the editor itself crashes, not the standalone game instance it launches?

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [March 27, 2022, 12:35am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/291 "2022-03-27T00:35:53Z")

</div>

That is correct. When I switch viewport from SM5 to Android Vulkan, UE5p2 Editor crashes.  
RHI is DX12, Raytracing is on, Forward rendering is on. UE 4.27.2 didn’t crash Editor, but also wouldn’t even switch to Android Vulkan at all, with such setup.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [March 29, 2022, 2:46pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/292 "2022-03-29T14:46:56Z")

</div>

Were you guys able to repro that Editor crash @jon_eg ?

Will the fix make it into 5.0 release ?

---

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [April 1, 2022, 5:05pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/293 "2022-04-01T17:05:48Z")

</div>

@jon_eg There’s still something not right with GPUlightmass in UE5 (main). See the realistic rendering project from the marketplace. Enabled GPUlightmass, rhi12, raytracing, virtual texture lightmaps and converted all lights to static.  
I’m seeing more artifacts in my own projects as well.

 ![realisticRendering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/6/3960f7ca72304718c559813200827cccc157d4d0.jpeg)

Edit: disabling the virtual textures doesn’t improve this. Even cranking the lightmap rez for the ceiling to 512 makes it even worse.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [April 1, 2022, 5:46pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/294 "2022-04-01T17:46:04Z")

</div>

> [@maxbrown](#):
>
> virtual texture lightmaps

those were always buggy for me, even in 4.27.2

---

<div class="post-metadata">

**Author:** ![maxbrown](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxbrown/32/1194506_2.png) [@maxbrown](https://forums.unrealengine.com/u/maxbrown)\
**Post date:** [April 6, 2022, 1:47pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/295 "2022-04-06T13:47:25Z")

</div>

> [@maxbrown](#):
>
> @jon_eg There’s still something not right with GPUlightmass in UE5 (main)

Update: GPU lightmass results seem ok using the new UE 5.0 from the launcher. Just like in 4.27. The github version I was testing was 5.1 so work/temporary breaks in progress I guess (duh). Will test more…

---

<div class="post-metadata">

**Author:** ![YujiangW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YujiangW](https://forums.unrealengine.com/u/YujiangW)\
**Post date:** [April 13, 2022, 7:23pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/296 "2022-04-13T19:23:02Z")

</div>

Some denoiser improvement is coming in 5.1:

 ![ScreenShot00004](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/9/3b9e21938ce7c345e3cb78d7e24ba77db223c41c.jpeg)  
Pre 5.1:  
 ![ScreenShot00002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/1/091083c59a0542bf948bcdb69fd546d1c44533ac.jpeg)  
5.1:  
 ![ScreenShot00003](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/a/96a27d162fb8e114f63d747998d016e5c39055e7.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:** [April 13, 2022, 8:24pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/297 "2022-04-13T20:24:39Z")

</div>

I still can’t figure why Epic’s GPUL is so far from Luoshuang’s GPUL, which was developed by only one person, and in less time, with better results. 🤦‍♂️

---

<div class="post-metadata">

**Author:** ![YujiangW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YujiangW](https://forums.unrealengine.com/u/YujiangW)\
**Post date:** [April 13, 2022, 8:27pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/298 "2022-04-13T20:27:03Z")

</div>

It’s developed by the same person (me) 🥲 , but many technicial and non-technical issues have drawn the development of the official one behind

---

<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:** [April 13, 2022, 9:57pm UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/300 "2022-04-13T21:57:39Z")

</div>

I knew! (But didn’t remember this was your actual username, sorry, hehe).

It’s a pitty. I hope to arrive soon the day when we can move from your incredible personal lightmass, to your (and Epic’s) official one, which will should be, I suppose, even better 😍

Thank you for your great work!

---

<div class="post-metadata">

**Author:** ![nSpeednSpeed](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nSpeednSpeed](https://forums.unrealengine.com/u/nSpeednSpeed)\
**Post date:** [April 14, 2022, 10:12am UTC](https://forums.unrealengine.com/t/epics-gpulightmass/139357/301 "2022-04-14T10:12:58Z")

</div>

There’s a bug that is a dealbreaker for GPULM in my case.

When using  
Stationary Directional Light  
Static Sky Light  
Volumetric Fog  
Shadow Maps (NOT virtual shadow maps, if you toggle those then it looks fine)

The Volumetric Fog is not shadowed (so it glows in dark places)  
This works correctly with cpu lightmass of course.

CPU Lightmass

 ![cpulm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/b/81beaa7cb5616bdc605e1fd90931d7f60e85e0f5.jpeg)

GPU Lightmass

 ![gpulm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/a/aea6c78a2a51da0432a11fcf538e5aaa76f959d4.jpeg)

Sorry it’s not the best pics. In indoor places it’s even worse.

[Previous page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=14)

[Next page](https://forums.unrealengine.com/t/epics-gpulightmass/139357.md?page=16)
