# Why doesn't Swarm distribute the end of lighting build?

**URL:** <https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352>\
**Category:** Rendering\
**Tags:** Lightmass, swarm-agent, build, unreal-engine, Lighting, question\
**Created:** [September 23, 2016, 3:14am UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352 "2016-09-23T03:14:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaptParis000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/captparis000/32/88708_2.png) [@CaptParis000](https://forums.unrealengine.com/u/CaptParis000)\
**Post date:** [September 23, 2016, 3:14am UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/1 "2016-09-23T03:14:25Z")

</div>

I’ve been doing some crazy lightmass building using Swarm distributed rendering but have realised that there’s a massive section at the end of the build which doesn’t get distributed. When the percentage of completion reaches the 90s the other machines drop off leaving one machine to do the rest of the work. However, this section easily takes the longest out of all the building.

Would anybody be able to tell me what calculations are happening here and why they can’t be distributed? If there’s no way to distribute this, what can I do to reduce the build time at this stage? I feel like increasing lightmap resolution has had the biggest impact so far.

 ![108176-lightmap.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/2/2d2e3c7c8bceb00793f9e46feefb99f12d936db4.jpeg)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 23, 2016, 3:08pm UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/2 "2016-09-23T15:08:49Z")

</div>

Hi CaptParis,

Once your lighting build completes use the Statistics Window to see what actors were causing lighting to spend the most time on. You can follow the information here to see how to do this: [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/LightingTroubleshootingGuide#Light_Build_Statistics)

When lighting builds are distributed the processes are sent to individual cores to be processed. When something like this happens the statistics window can help you identify the cause. It could be anything from a large lightmap resolution, complex mesh, or instanced foliage that has be calculated. It just depends, but this can help you get started in tracking down the cause.

-Tim

---

<div class="post-metadata">

**Author:** ![CaptParis000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/captparis000/32/88708_2.png) [@CaptParis000](https://forums.unrealengine.com/u/CaptParis000)\
**Post date:** [September 25, 2016, 12:00am UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/3 "2016-09-25T00:00:26Z")

</div>

Thanks Tim, that’s perfect!

---

<div class="post-metadata">

**Author:** ![CaptParis000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/captparis000/32/88708_2.png) [@CaptParis000](https://forums.unrealengine.com/u/CaptParis000)\
**Post date:** [September 25, 2016, 12:05am UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/4 "2016-09-25T00:05:46Z")

</div>

I also just wanted to see if you had any idea about this lighting build issue I’ve been having. It’s a bad one and I’m not sure whether to report it as a bug:

> **[Lightmaps badly broken after lighting build](https://forums.unrealengine.com/questions/467389/lightmaps-badly-broken-after-lighting-build.html)**
>
> I’ve used Unreal for a while now but recently started to look at learning all the ins and outs of high quality rendering. Recently, I’ve started to get this random issue where the lighting build totally breaks and refuses to update any further....

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 27, 2016, 1:44pm UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/5 "2016-09-27T13:44:20Z")

</div>

No guarantees I’ll look at it in more depth, but doesn’t look like a bug. Looks like low quality lightmaps streaming in, and not to be confused with low lightmap resolution. You can test this by disabling texture streaming in the Project Settings \> Rendering.

---

<div class="post-metadata">

**Author:** ![CaptParis000](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/captparis000/32/88708_2.png) [@CaptParis000](https://forums.unrealengine.com/u/CaptParis000)\
**Post date:** [September 27, 2016, 10:36pm UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/6 "2016-09-27T22:36:49Z")

</div>

That’s great information. I’ve narrowed it down to being caused whenever I pushed lightmaps from 1024 to 2048 resolution, is there any reason doing that would break the texture streaming? Turning off streaming altogether does seem to solve the issue, but that’s probably not a good solution in the long run right? Thanks for looking into it, I understand if you don’t have more time for it at the moment.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [September 28, 2016, 3:04pm UTC](https://forums.unrealengine.com/t/why-doesnt-swarm-distribute-the-end-of-lighting-build/371352/7 "2016-09-28T15:04:02Z")

</div>

Followed up on your other thread.
