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

<div class="post-metadata">

**Author:** ![NiukNiuk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/niukniuk/32/88718_2.png) [@NiukNiuk](https://forums.unrealengine.com/u/NiukNiuk)\
**Post date:** [September 13, 2019, 1:39pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1416 "2019-09-13T13:39:14Z")

</div>

> [@jlb30842164](#):
>
> 4.23¿  
> Do you have any news?

[https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page90](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass/page90)

> [@](#):
>
> Updated for UE 4.23.0-release.
> 
> Binaries (still the same link):  
> [https://www.dropbox.com/sh/fjr63yeut…Fena?dl=0&lst=](https://www.dropbox.com/sh/fjr63yeutafmip9/AAA54ghH1gCrd5VFnpYezFena?dl=0&lst=)
> 
> GPU Lightmass integration source code rebased onto 4.23.0-release:  
> https://.com/irobot/UnrealEngine/tree/GPU-Lightmass-4.23.0-release

---

<div class="post-metadata">

**Author:** ![pax\_invictus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pax\_invictus](https://forums.unrealengine.com/u/pax_invictus)\
**Post date:** [September 13, 2019, 9:40pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1417 "2019-09-13T21:40:37Z")

</div>

> [@mastercoms](#):
>
> Getting this error when trying to build: LINK : fatal error LNK1181: cannot open input file ‘GPULightmassKernel.lib’

I’ve uploaded GPULightmassKernel.lib in the same dropbox share. You would obviously need to add the path to wherever you save it to the build settings for UnrealLightmass in VS.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c5ae40b0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c5ae40b0](https://forums.unrealengine.com/u/anonymous_user_c5ae40b0)\
**Post date:** [September 14, 2019, 9:27pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1419 "2019-09-14T21:27:07Z")

</div>

in my case the gpu is malfunctioning.  
how to switch back to cpu?

---

<div class="post-metadata">

**Author:** ![NiukNiuk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/niukniuk/32/88718_2.png) [@NiukNiuk](https://forums.unrealengine.com/u/NiukNiuk)\
**Post date:** [September 15, 2019, 5:38am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1420 "2019-09-15T05:38:52Z")

</div>

> [@coloss85](#):
>
> in my case the gpu is malfunctioning.  
> how to switch back to cpu?

If you didn’t backup the replaced files, select “verify” in the engine’s drop down menu and it should restore the original files (cpu).  
See picture

---

<div class="post-metadata">

**Author:** ![KM3d300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KM3d300](https://forums.unrealengine.com/u/KM3d300)\
**Post date:** [September 17, 2019, 12:30am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1423 "2019-09-17T00:30:29Z")

</div>

This is so good - the results are consistently gorgeous and so much better than “irradiance mapping”.

I know it’s been asked before, back in 2018 - but are IES and area lights on the roadmap for support?

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [September 17, 2019, 3:06am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1424 "2019-09-17T03:06:20Z")

</div>

@KM3d300 It’s not on development anymore. was hired by Epic and is now working on a GPU Lightmass version for the engine. He was starting a new version of it already with support for new stuff and improved lightmapping, specially on UV seams. So I believe that’ll all be included in the Engine. But how long from now? No idea.

---

<div class="post-metadata">

**Author:** ![KM3d300](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KM3d300](https://forums.unrealengine.com/u/KM3d300)\
**Post date:** [September 17, 2019, 3:44am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1425 "2019-09-17T03:44:23Z")

</div>

Ah, thanks @

Came to the party quite late so thanks for the update.

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [September 17, 2019, 9:03am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1426 "2019-09-17T09:03:13Z")

</div>

hello,

I am working in a project for this last months in ue 4.22…till now it was everything perfect, but since I am trying to do the last lightmass build I am having some problems…the configuration is the same as in previous builds, I am working with the “Extreme settings” and the problem is that suddenly, the build times increased a lot…the same scenen that it took almost 6 hours, now is taking 2 days…as I said, nothing new in the scene, exactly the same…any ideas? thank you very much!

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [September 17, 2019, 5:49pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1427 "2019-09-17T17:49:16Z")

</div>

> [@Idgi](#):
>
> hello,
> 
> I am working in a project for this last months in ue 4.22…till now it was everything perfect, but since I am trying to do the last lightmass build I am having some problems…the configuration is the same as in previous builds, I am working with the “Extreme settings” and the problem is that suddenly, the build times increased a lot…the same scenen that it took almost 6 hours, now is taking 2 days…as I said, nothing new in the scene, exactly the same…any ideas? thank you very much!

When that happened to me I figured later it was a driver \*issue \*(there’s also something bout it on this thread). NVidia drivers will prioritize any 3D work over CUDA processing. So minimize Unreal while building, if your browser uses hardware acceleration minimize it too or turn that off and, in my case, I have to close Wallpaper Engine too. \*\*\*Anything \*\*\*that might be using the GPU for graphics processing, shut it down or minimize it. I saw an instant speed difference after closing/minimizing those while GPU Lightmass does its thing.

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 17, 2019, 8:05pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1428 "2019-09-17T20:05:29Z")

</div>

Hi there, quick question. Where do you modify quality settings? I understood that it ignores the settings in the editor UI. Is modifying NumPrimaryGISamples and NumSecondaryGISamples in the ini enough?

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [September 17, 2019, 8:17pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1429 "2019-09-17T20:17:57Z")

</div>

> [@](#):
>
> When that happened to me I figured later it was a driver \*issue \*(there’s also something bout it on this thread). NVidia drivers will prioritize any 3D work over CUDA processing. So minimize Unreal while building, if your browser uses hardware acceleration minimize it too or turn that off and, in my case, I have to close Wallpaper Engine too. \*\*\*Anything \*\*\*that might be using the GPU for graphics processing, shut it down or minimize it. I saw an instant speed difference after closing/minimizing those while GPU Lightmass does its thing.

Yes, already noticed that, and these last builds the browser was closed and the Unreal editor minimized…so there was nothing going on in my computer appart from the build light…the funny thing is that the ventilator of the GPU is almost not working when baking that level, wich means the calculation goes slower as normal during those bake lights…but if I bake anything other, like the same level with just a part of the whole project, the ventilator is working full and the velocity of bake is back to normal, also in the build statics when it goes slower it says “overall xxx seconds 10.72Mrays/s” and in other cases can go up to 277,76 or 340,22 Mrays/s, so I guess that is something more objective than the ventilator 😉 …not sure why all this happen

EDIT: after 7hours of waiting, only got 10% done at an “overall 22332.44s 16.33Mrays/s” and still 47h to go, but it looks like the most it does the slower it gets… the GPU is almost not working, resource monitor says it is at 5% (CUDA 0-100%)…the Memory at 60% and the CPU at 21%  
It looks like performance is down and I do not know why…ANY HELP?

---

<div class="post-metadata">

**Author:** ![pax\_invictus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pax\_invictus](https://forums.unrealengine.com/u/pax_invictus)\
**Post date:** [September 17, 2019, 8:30pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1430 "2019-09-17T20:30:55Z")

</div>

> [@Nocturness](#):
>
> hi guys i have huge problem with 4.23.0 gpulightmass on yesterday. (binary version)
> 
> BUILD SUCCESSFUL for win64 but when i run the package exe i get this message. i did check RHI settings and setted dx12. (raytace activated project)
> 
> [https://i.ibb.co/Mpmy0cZ/packerrror.jpg](https://i.ibb.co/Mpmy0cZ/packerrror.jpg)
> 
> Engine version verified and problem gone. A really big problem on gpu lightmass with 4.23.0 (even packaging successful but not working). please alert users/developers to this problem.

I have just updated the binaries after identified the problem.  
Packaging should now be working correctly.  
You would need to download the updated binaries from the same link as before, and apply them.  
Let me know if the problem is still present after updating. Otherwise, send thanks to !

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [September 17, 2019, 8:31pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1431 "2019-09-17T20:31:57Z")

</div>

> [@scha](#):
>
> Hi there, quick question. Where do you modify quality settings? I understood that it ignores the settings in the editor UI. Is modifying NumPrimaryGISamples and NumSecondaryGISamples in the ini enough?

I am not an expert, but did you use the script to install?  
If you did, there you can find the “lightmassconfiguration.bat” where you can change quality settings

the only thing that does not ignore is: “Lightmass parameters and quality settings specified in the editor are ignored except for \*\*Num Indirect Lighting Bounces” … \*\*quoted from [https://forums.unrealengine.com/deve…ss#post1460002](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass#post1460002)

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 17, 2019, 8:51pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1432 "2019-09-17T20:51:45Z")

</div>

> [@Idgi](#):
>
> I am not an expert, but did you use the script to install?  
> If you did, there you can find the “lightmassconfiguration.bat” where you can change quality settings
> 
> the only thing that does not ignore is: “Lightmass parameters and quality settings specified in the editor are ignored except for \*\*Num Indirect Lighting Bounces” … \*\*quoted from [https://forums.unrealengine.com/deve…ss#post1460002](https://forums.unrealengine.com/development-discussion/rendering/1460002--s-gpulightmass#post1460002)

No I just copied the files. I tried using NumPrimaryGISamples=256, but I think it’s a little bit over the top, took like 25 min. Now trying 128, seems it will take about 5 mins only.

edit: yep, seems 128 is the right number 🙂 And it looks good! but it looks slightly different than the normal lightmass, like less smooth.

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [September 17, 2019, 8:58pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1433 "2019-09-17T20:58:05Z")

</div>

> [@scha](#):
>
> No I just copied the files. I tried using NumPrimaryGISamples=256, but I think it’s a little bit over the top, took like 25 min. Now trying 128, seems it will take about 5 mins only.
> 
> edit: yep, seems 128 is the right number 🙂 And it looks good! but it looks slightly different than the normal lightmass, like less smooth.

with the “extreme settings” that I am working, on the ini says:  
NumPrimaryGISamples=128  
NumSecondaryGISamples=32

I have also changed the fireflyclamp to 10, the only number that gives me no bright splotches

---

<div class="post-metadata">

**Author:** ![scha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scha/32/1135430_2.png) [@scha](https://forums.unrealengine.com/u/scha)\
**Post date:** [September 18, 2019, 12:45pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1434 "2019-09-18T12:45:30Z")

</div>

> [@Idgi](#):
>
> with the “extreme settings” that I am working, on the ini says:  
> NumPrimaryGISamples=128  
> NumSecondaryGISamples=32
> 
> I have also changed the fireflyclamp to 10, the only number that gives me no bright splotches

Thanks. I used 128,64,1000 and it was pretty fast. I didn’t notice any splotches, but the shadows look more “hard” with the GPU version.  
For example, there are the same view baked with CPU and with GPU. I like more how the shadows look in the CPU version.

Is there some parameter to make GPU shadows more soft?

 ![InkedScreenShot00002_LI.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/3/736548de0aa94405011c802da22e1217e0ba7e11.jpeg)  
GPU Lightmass

 ![InkedScreenShot00000_LI.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/a/fab1aad5f7d1a5dd87e9b1aab8b4a9f9403085f9.jpeg)  
CPU Lightmass

---

<div class="post-metadata">

**Author:** ![Idgi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Idgi](https://forums.unrealengine.com/u/Idgi)\
**Post date:** [September 18, 2019, 2:36pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1435 "2019-09-18T14:36:33Z")

</div>

> [@scha](#):
>
> Thanks. I used 128,64,1000 and it was pretty fast. I didn’t notice any splotches, but the shadows look more “hard” with the GPU version.  
> For example, there are the same view baked with CPU and with GPU. I like more how the shadows look in the CPU version.
> 
> Is there some parameter to make GPU shadows more soft?

sorry, no idea…did you use \*\*Num Indirect Lighting \*\*bounces = 100 ??  
or maybe changing the HDRI if you are using one, I would not expect same results in two different ways of calculating light…just talking for the experience with vray cpu and gpu that have also a lot of differences…but it is just a guess

---

<div class="post-metadata">

**Author:** ![Marcio\_Vieira](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Marcio\_Vieira](https://forums.unrealengine.com/u/Marcio_Vieira)\
**Post date:** [September 20, 2019, 11:44pm UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1437 "2019-09-20T23:44:40Z")

</div>

Messing up with meshs using Datasmith Mesh Editing will make it crash.

If you use high values of intensity on lights(like thousands) will make it crash as so.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_63fabc8e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_63fabc8e](https://forums.unrealengine.com/u/anonymous_user_63fabc8e)\
**Post date:** [September 23, 2019, 12:37am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1438 "2019-09-23T00:37:17Z")

</div>

He everyone!

I’m using Version 4.23 ( and build with GPULightmass 4.23), the quality is good but the build time is very slow.  
When building a project, the GPU doesn’t work as well as the CPU a little.

And I want to ask you here, is everything okay is this form? or is there something wrong with me?

Please help me how to improve this.  
Thanks

---

<div class="post-metadata">

**Author:** ![ALPHA\_KENT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ALPHA\_KENT](https://forums.unrealengine.com/u/ALPHA_KENT)\
**Post date:** [September 23, 2019, 8:15am UTC](https://forums.unrealengine.com/t/luoshuangs-gpulightmass/109474/1439 "2019-09-23T08:15:29Z")

</div>

> [@Fabian.le](#):
>
> He everyone!
> 
> I’m using Version 4.23 ( and build with GPULightmass 4.23), the quality is good but the build time is very slow.  
> When building a project, the GPU doesn’t work as well as the CPU a little.
> 
> And I want to ask you here, is everything okay is this form? or is there something wrong with me?
> 
> Please help me how to improve this.  
> Thanks

Change “Copy” to “Cuda” in dispetcher and u’ll see full load

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

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