# Luoshuang's GPULightmass

**URL:** <https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [April 13, 2018, 5:44am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474 "2018-04-13T05:44:47Z")\
**Posts on this page:** 20\
**Page:** 79

<div class="post-metadata">

**Author:** ![Matrapazlakus1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Matrapazlakus1](https://forums.unrealengine.com/u/Matrapazlakus1)\
**Post date:** [January 19, 2020, 8:43am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1632 "2020-01-19T08:43:29Z")

</div>

> [@vikivega2020](#):
>
> Hi Any update on this working in AMD Cards? Can we expect a release soon?

Is there any way to make it work on AMD cards?

---

<div class="post-metadata">

**Author:** ![Oikard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Oikard](https://forums.unrealengine.com/u/Oikard)\
**Post date:** [January 19, 2020, 4:10pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1633 "2020-01-19T16:10:02Z")

</div>

I’m having the same problem as someone else

> [@neighborlee](#):
>
> Yes, and I see nearly NO GPU use, MAX so far I’ve seen is 5%\>GTX 9502gb, yes I know I need to upgrade but my i5-3570 is hanging.  
> I also can’t FIND the ‘uninstall’ location to get rid of it,again, anyone know where it is/how to manually do it if need be ?
> 
> Thx

I’m having the same problem, around 5% GPU usage with 4.24.1. Worked well before. Any fix for this?

---

<div class="post-metadata">

**Author:** ![Metathesus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Metathesus](https://forums.unrealengine.com/u/Metathesus)\
**Post date:** [January 19, 2020, 5:57pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1634 "2020-01-19T17:57:43Z")

</div>

Just a recent experiment. I have compiled UE4.24 from original 4.24 source (with all last fixes)  
I’ve replaced file provided here, the binaries ones and GPU lightmass is working well  
The only things is that the gpulightmass windows doesn’t appears when building lights but it’s not a problem for me, you can follow the swarm agent and the GPU (cuda) usage in taskmanager.

Thanks to all for your hard work to provide this GPU lightmass

---

<div class="post-metadata">

**Author:** ![neighborlee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neighborlee/32/1108786_2.png) [@neighborlee](https://forums.unrealengine.com/u/neighborlee)\
**Post date:** [January 19, 2020, 7:34pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1635 "2020-01-19T19:34:23Z")

</div>

@Metathesus , trouble is I don’t have ‘cuda’ anywhere, not even under ’ 3D’, anyone know why ? I have latest nvidia and I don’t recall seeing anywhere I needed to download cuda sdk as I have no intention to DEV with it,or Do I need to to have CUDA show up ? If so, I guess that would explain my lowly 5% max usage of GPU , maybe.

---

<div class="post-metadata">

**Author:** ![Bdcoll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bdcoll](https://forums.unrealengine.com/u/Bdcoll)\
**Post date:** [January 19, 2020, 9:05pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1636 "2020-01-19T21:05:18Z")

</div>

Seeing a lot of people talk about editing this setting in the lightmass.ini file to remove firelfies in my scene, but i can’t find it anywhere. Can anyone point me in the right direction?

FireflyClampingThreshold=10.0 ----\> FireflyClampingThreshold=1.0

---

<div class="post-metadata">

**Author:** ![Bdcoll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bdcoll](https://forums.unrealengine.com/u/Bdcoll)\
**Post date:** [January 19, 2020, 9:08pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1637 "2020-01-19T21:08:23Z")

</div>

> [@remozseo](#):
>
> How to install it? :eek:
> 
> Can’t find any tutorial or guide that shows how I have to install it?  
> Thx for any little help!

> [@](#):
>
> **GPU Lightmass 4.24.1**
> 
> Binaries [download](http://www.dropbox.com/sh/m9z61h37n2uck5o/AADRewQBKOqT0DISGifsMbraa?dl=0)
> 
> Source [code](https://.com/irobot/UnrealEngine/tree/GPULightmass-UE4.24.1)

I used this that Pax Invictus made. Readme on how to install is in there.

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [January 20, 2020, 10:09am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1638 "2020-01-20T10:09:43Z")

</div>

> [@Bdcoll](#):
>
> Seeing a lot of people talk about editing this setting in the lightmass.ini file to remove firelfies in my scene, but i can’t find it anywhere. Can anyone point me in the right direction?
> 
> FireflyClampingThreshold=10.0 ----\> FireflyClampingThreshold=1.0

It specifies the value at which to disregard rays. Having it set to 10 will mean any values above 10 units in brightness will be clamped down. It helps with the occasional times you get stray rays causing extremely bright points of light where they shouldn’t, though this rarely occurs. You should rarely be set this low. If you’re using physically correct lighting values (up to 100k lux) the clamping threshold should be set somewhere above that: “FireflyClampingThreshold=200000”

---

<div class="post-metadata">

**Author:** ![Jamie.Marshall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jamie.Marshall](https://forums.unrealengine.com/u/Jamie.Marshall)\
**Post date:** [January 20, 2020, 10:47am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1639 "2020-01-20T10:47:25Z")

</div>

> [@wickerman123](#):
>
> It specifies the value at which to disregard rays. Having it set to 10 will mean any values above 10 units in brightness will be clamped down. It helps with the occasional times you get stray rays causing extremely bright points of light where they shouldn’t, though this rarely occurs. You should rarely be set this low. If you’re using physically correct lighting values (up to 100k lux) the clamping threshold should be set somewhere above that: “FireflyClampingThreshold=200000”

Great thanks,

Where abouts do i find the value to change it, i can’t find it in the editor, nor can i see it in the normal baselightmass.ini file

---

<div class="post-metadata">

**Author:** ![Metathesus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Metathesus](https://forums.unrealengine.com/u/Metathesus)\
**Post date:** [January 20, 2020, 7:32pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1640 "2020-01-20T19:32:52Z")

</div>

> [@neighborlee](#):
>
> @Metathesus , trouble is I don’t have ‘cuda’ anywhere, not even under ’ 3D’, anyone know why ? I have latest nvidia and I don’t recall seeing anywhere I needed to download cuda sdk as I have no intention to DEV with it,or Do I need to to have CUDA show up ? If so, I guess that would explain my lowly 5% max usage of GPU , maybe.

 ![Sans-titre1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/e/ae618c8d6f17192c668cf118fe47433d0b4d78bc.jpeg)  
In task manager, You can select Cuda in one of the four graphs…

---

<div class="post-metadata">

**Author:** ![Bdcoll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bdcoll](https://forums.unrealengine.com/u/Bdcoll)\
**Post date:** [January 20, 2020, 8:07pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1641 "2020-01-20T20:07:22Z")

</div>

> [@wickerman123](#):
>
> It specifies the value at which to disregard rays. Having it set to 10 will mean any values above 10 units in brightness will be clamped down. It helps with the occasional times you get stray rays causing extremely bright points of light where they shouldn’t, though this rarely occurs. You should rarely be set this low. If you’re using physically correct lighting values (up to 100k lux) the clamping threshold should be set somewhere above that: “FireflyClampingThreshold=200000”

Thanks for the response, thats actually useful to know.

I only ask as i’m trying to solve this. I literally only have a skylight in the scene, intensity set to 1 but i’m getting terrible results even on production settings

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/9/699cd4f1b43065e1081a1afe596acc1b4401ab6a.jpeg)

---

<div class="post-metadata">

**Author:** ![neighborlee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neighborlee/32/1108786_2.png) [@neighborlee](https://forums.unrealengine.com/u/neighborlee)\
**Post date:** [January 20, 2020, 8:12pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1642 "2020-01-20T20:12:46Z")

</div>

> [@Metathesus](#):
>
> ![Sans-titre1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/e/ae618c8d6f17192c668cf118fe47433d0b4d78bc.jpeg)  
> In task manager, You can select Cuda in one of the four graphs…

Yup I know where its at, but unlike what your pic shows none of my ‘graphs’, show Cuda at all.

---

<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:** [January 21, 2020, 3:10am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1643 "2020-01-21T03:10:42Z")

</div>

I just happened to bake scene with CPU Lightmass and then GPU Lightmass (same project, very simple, testing stock 4.24.1 vs Oculus 4.24.1 with has GPU Lightmass). I noticed that CPU Lightmass takes environment color from World Settings for Skylight when no cubemap is specified (and if skysphere is missing). GPU Lightmass ignores it completely (so my indirect lighting is pitch black).

I never noticed that before because I always had skysphere. Is it a bug or an unsupported feature in GPU Lightmass ?

EDIT: After chatting with the Man himself, it sounds like it’s unsupported 😕

---

<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:** [January 22, 2020, 4:01am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1644 "2020-01-22T04:01:09Z")

</div>

Has anyone figured out a workaround for GPU Lightmass crapping all over LODed static meshes ?

Apparently LODs are also not supported and if there is no workaround, it was nice knowing you folks, but I would have to go back to CPU Lightmass ☹

 ![GPULightmass_Issues.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/f/9fcd7c030ce8a986e23488572b0629338304f620.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7fca7ee9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7fca7ee9](https://forums.unrealengine.com/u/anonymous_user_7fca7ee9)\
**Post date:** [January 22, 2020, 7:30am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1645 "2020-01-22T07:30:29Z")

</div>

> [@](#):
>
> You can use command line to launch the editor and bake lighting to save GPU resources for GPULightmass, especially video memory.
> 
> ```
> Engine/Binaries/Win64/UE4Editor-Cmd.exe "path	o\your\project\yourproject.uproject" -run=resavepackages -buildlighting -allowcommandletrendering -map=/Game/Maps/MyMap.umap
> Remember to replace Content with Game in the umap path
> 
> ```

As mentioned before, is there any way to use this command on macOS or Linux?  
I tried “UnrealLightmass” command in ProjectFolder\Engine\Binaries\Linux instead of UE4Editor-Cmd.exe on Ubuntu 18.04 LTS, but got error below again and again…

```auto

Failed to open scene channel with GUID {00000123}:{00004567}:{000089ab}:{0000cdef}
LogInit: Error: Timed out waiting for the recipient (TimeWaitingSec = ***** )

```

---

<div class="post-metadata">

**Author:** ![Lesuge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lesuge](https://forums.unrealengine.com/u/Lesuge)\
**Post date:** [January 22, 2020, 12:52pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1646 "2020-01-22T12:52:09Z")

</div>

Hey guys its just a dumb question, but i read a lot of pages in this thread and still couldnt figure out, how i can setup the GPU Lighmass properly. Can you give me a litttle help?. Do i have to build the Engine from source and then switch out the selectet Engine Binary files?

---

<div class="post-metadata">

**Author:** ![Jamie.Marshall](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jamie.Marshall](https://forums.unrealengine.com/u/Jamie.Marshall)\
**Post date:** [January 22, 2020, 2:10pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1647 "2020-01-22T14:10:02Z")

</div>

> [@Lesuge](#):
>
> Hey guys its just a dumb question, but i read a lot of pages in this thread and still couldnt figure out, how i can setup the GPU Lighmass properly. Can you give me a litttle help?. Do i have to build the Engine from source and then switch out the selectet Engine Binary files?

Look back one page to the posts by Bdcoll, Theirs a link to download the GPU Lightmass in a format that just needs extracting to the right folder, and the folder location is all in the Readme in that link. No need to rebuild from source etc. just extract that to the right place

---

<div class="post-metadata">

**Author:** ![Lesuge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lesuge](https://forums.unrealengine.com/u/Lesuge)\
**Post date:** [January 22, 2020, 2:20pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1648 "2020-01-22T14:20:08Z")

</div>

> [@Jamie.Marshall](#):
>
> Look back one page to the posts by Bdcoll, Theirs a link to download the GPU Lightmass in a format that just needs extracting to the right folder, and the folder location is all in the Readme in that link. No need to rebuild from source etc. just extract that to the right place

Sorry my bad, i had to wait for the Swarm Agent to push the data to the GPU Lightmass. It worked

---

<div class="post-metadata">

**Author:** ![wickerman123](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wickerman123/32/1198875_2.png) [@wickerman123](https://forums.unrealengine.com/u/wickerman123)\
**Post date:** [January 22, 2020, 3:01pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1649 "2020-01-22T15:01:11Z")

</div>

> [@Bdcoll](#):
>
> Thanks for the response, thats actually useful to know.
> 
> I only ask as i’m trying to solve this. I literally only have a skylight in the scene, intensity set to 1 but i’m getting terrible results even on production settings
> 
> ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/9/699cd4f1b43065e1081a1afe596acc1b4401ab6a.jpeg)

Skylight casts very scattered light and it looks like you’ve got a low ray count, you need to edit your BaseLightmass.ini.

Medium quality is I believe:

```auto

DevOptions.GPULightmass]
NumPrimaryGISamples=32
NumSecondaryGISamples=16

```

Extreme (I wouldn’t go any higher than this) is:

```auto

DevOptions.GPULightmass]
NumPrimaryGISamples=256
NumSecondaryGISamples=64

```

The [lightmass configuration](https://.com/sgeraldes/LightmassConfiguration/) script makes it very quick and easy to change this.

---

<div class="post-metadata">

**Author:** ![Bdcoll](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bdcoll](https://forums.unrealengine.com/u/Bdcoll)\
**Post date:** [January 22, 2020, 6:37pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1650 "2020-01-22T18:37:27Z")

</div>

> [@wickerman123](#):
>
> Skylight casts very scattered light and it looks like you’ve got a low ray count, you need to edit your BaseLightmass.ini.
> 
> Medium quality is I believe:
> 
> ```auto
> 
> DevOptions.GPULightmass]
> NumPrimaryGISamples=32
> NumSecondaryGISamples=16
> 
> ```
> 
> Extreme (I wouldn’t go any higher than this) is:
> 
> ```auto
> 
> DevOptions.GPULightmass]
> NumPrimaryGISamples=256
> NumSecondaryGISamples=64
> 
> ```
> 
> The [lightmass configuration](https://.com/sgeraldes/LightmassConfiguration/) script makes it very quick and easy to change this.

Ah thats great thanks for this. I’ll have to look into using the script as i dont see a GPULightmass option in my BaseLightnmass, despite having it installed -\_-

Edit: Actually i lie, its tucked away down at the bottom of everything, and Ctrl+F was failing to find it for some reason

---

<div class="post-metadata">

**Author:** ![enoes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enoes](https://forums.unrealengine.com/u/enoes)\
**Post date:** [January 23, 2020, 7:43am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1651 "2020-01-23T07:43:33Z")

</div>

![Adsız.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/6/5/658075686b580253a250a07d43723005fb5b6c6a.png)  
Gpu slow down and cpu always 100 percent. What is my problem. All lights close just sky and sun. All emissive material delete but still same

[Previous page](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474.md?page=78)

[Next page](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474.md?page=80)
