Building lighting not using resources

Hello,
I’m building the lighmaps for an archviz project and the building lightning is at 98% (it started a couple hours ago at preview quality) and the problem is that UE4 is not using resources. It’s just using some RAM but the CPU is at 0%, is this normal?

Is actually stuck or is just how UE4 works?

Thank you.

Hi Ikos -

I cannot see Swarm Agent on your Task Manager. Is it utilizing CPU resources? Depending on the size of your level, it can take quite a while to build lighting even on preview level quality. With the 98% it could also be that the light building has actually finished and the engine wants to encode textures for the shadow and light maps, but some administrative privileges are keeping it from doing so.

If you are doing a large world environment, I would suggesting waiting to see if the engine recovers on its own, but if not make sure that the engine and Swarm Agent are allowed to operate with Administrative privileges.

Thank You

Eric Ketchum

The level is quite small, that’s why I was wondering if it’s normal or not.
The Swarm Agent was opened and at max was using 1% of the CPU since the total was 2% but I’m not sure.

How can I enable the engine and the Swarm Agent at Administrative level? I can’t find the .exe to enable that.

Thank you.

The Engine Binary is in Epic Games\Unreal Engine\4.8\Engine\Binaries
and the Swarm Agent is in Epic Games\Unreal Engine\4.8\Engine\Binaries\DotNET\

Ok, I set the exes to run as administrator and now the launcher gives me an error saying “Failed to launch editor”. If i start the editor itself it works, but I can’t use the launcher to open it anymore.
Is this a normal behavior?

I still didn’t test if your solution fix the lightmap building, I will in a couple of hours and update my post.

I tried to build the lightmap with the permission you said and after 1 hour and half seems stuck on 97%.

Unreal Lightmass is using 6GB of RAM and 0% of CPU;
Unreal Engine is using 2GB of RAM and 0.5% of CPU;
SwarmAgent is using 20MB of RAM and 0% of CPU.

On the SwarmAgent log I found some errors, maybe it’s there the problem. The log it’s attached if you want to take a look at it.

Thank you again for the patience.

If you open your Swarm Agent, in the Settings Tab, what is your cache folder set to and whatever drive the cache is located on how much free space is available?

Eric Ketchum

The folder that is using is this “C:\Program Files\Epic Games\4.7\Engine\Binaries\DotNET/SwarmCache” and the drive has around 30GB free.

I have another drive with plenty of free space, can I move the cache there?
And why is the folder named 4.7 if I’m using the 4.8 version? Did I mess up something with the transfer form 4.7 to 4.8?

Yes, I would move the cache over to the drive with more freespace. And no, you did not do anything wrong in the conversion. If you still have 4.7, that project may be using the Swarm Agent in that version of the engine to render lighting (not an issue at all). I would also delete everything in your current swarm cache (probably a lot of data and will clear up some space). Also when you move your Swarm Cache in the settings tab of Swarm Agent, make sure to use the Clean and Validate options under the Cache dropdown.

Thank You

Eric Ketchum