# Why does UE5 compile every module every time?

**URL:** <https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, question, CPP\
**Created:** [April 9, 2022, 6:31am UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356 "2022-04-09T06:31:25Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 9, 2022, 6:31am UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/1 "2022-04-09T06:31:25Z")

</div>

After upgrading my 4.27.2 project to 5.0, every time I make even a tiny change in one of my game’s source files the build tool seems to recompile a whole bunch of modules (seems to be all my plugins), so my build times went from \< 10s to over a minute. The link steps take the longest. I’m not building the engine from source BTW. I looked through the migration guide and couldn’t find any obvious reason it would be doing this. Can anyone help me please?

I’ve attached my build log.  
[ue5\_build\_log.txt](https://forums.unrealengine.com/uploads/short-url/wfApPyoUIOGdBsYNd6NNGoDlQpO.txt) (15.2 KB)

---

<div class="post-metadata">

**Author:** ![tginick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tginick](https://forums.unrealengine.com/u/tginick)\
**Post date:** [April 9, 2022, 8:28am UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/2 "2022-04-09T08:28:56Z")

</div>

I’m noticing this as well in the binary dist of UE5 from the Launcher. What’s odd is that (for me at least) the plugins that are being recompiled are plugins that come from the marketplace. These, of all things, shouldn’t need to be recompiled.

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 9, 2022, 11:48am UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/3 "2022-04-09T11:48:28Z")

</div>

I’m also using the launcher version, and all the plugins I’m using at the moment are also from the Marketplace. Glad to hear it’s not just me, hopefully someone has an answer for us!

---

<div class="post-metadata">

**Author:** ![KaidoomDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kaidoomdev/32/977996_2.png) [@KaidoomDev](https://forums.unrealengine.com/u/KaidoomDev)\
**Post date:** [April 9, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/4 "2022-04-09T16:31:28Z")

</div>

I’m just guessing but it might the bUseUnityBuild setting you could add to your target.

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 9, 2022, 9:37pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/5 "2022-04-09T21:37:30Z")

</div>

> I’m just guessing but it might the bUseUnityBuild setting you could add to your target.

That reduces the number of files to compile from 55 to 44 but otherwise not much changed unfortunately.

---

<div class="post-metadata">

**Author:** ![tginick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tginick](https://forums.unrealengine.com/u/tginick)\
**Post date:** [April 9, 2022, 10:37pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/6 "2022-04-09T22:37:02Z")

</div>

[How to prevent plugin recompilation - Pipeline & Plugins / Plugins - Unreal Engine Forums](https://forums.unrealengine.com/t/how-to-prevent-plugin-recompilation/473557)

The solution (add `bUsePrecompiled = true` to plugin build.cs files) seems to have worked for me. I still feel that something is off as this shouldn’t be necessary with Marketplace installs.

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 9, 2022, 10:52pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/7 "2022-04-09T22:52:33Z")

</div>

> The solution (add `bUsePrecompiled = true` to plugin build.cs files) seems to have worked for me. I still feel that something is off as this shouldn’t be necessary with Marketplace installs.

Thank you! At least we have a workaround now; works for me too. I won’t mark this as the solution yet as there’s clearly something wrong somewhere. I’m not sure how one could get Epic’s attention, hopefully they have staff on the forums.

---

<div class="post-metadata">

**Author:** ![Recursoft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Recursoft](https://forums.unrealengine.com/u/Recursoft)\
**Post date:** [April 11, 2022, 4:48pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/8 "2022-04-11T16:48:33Z")

</div>

I submitted a bug report to Epic on this issue.

---

<div class="post-metadata">

**Author:** ![Acriax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/acriax/32/472400_2.png) [@Acriax](https://forums.unrealengine.com/u/Acriax)\
**Post date:** [April 12, 2022, 2:54pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/9 "2022-04-12T14:54:09Z")

</div>

I’m getting this issue on a lot if not all installed marketplace plugins right now. Build times have gone from 5 seconds to upwards 50s. Adding `bUsePrecompiled = true` in the build.cs doesn’t work for some plugins, such as Multi Object Renaming Tool (MORT). It will cause the editor to throw an error upon launch.

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 12, 2022, 9:49pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/10 "2022-04-12T21:49:55Z")

</div>

@Acriax Sorry to hear that `bUsePrecompiled` doesn’t work for all the plugins. It’s a less than ideal workaround for sure. I’m really hoping that the bug report submitted by Recursoft gets some love; I can’t imagine this is only limited to a handful of people. Having said that, Epic is no doubt swamped since the release.

---

<div class="post-metadata">

**Author:** ![Herobrine20XX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/herobrine20xx/32/1194718_2.png) [@Herobrine20XX](https://forums.unrealengine.com/u/Herobrine20XX)\
**Post date:** [April 18, 2022, 8:21pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/11 "2022-04-18T20:21:10Z")

</div>

Just wanted to add a few keywords because I didn’t find this issue and was stuck a couple of hours reverse engineering the **live coding** feature since I was reported this problem:

> <https://github.com/hugoattal/ElectronicNodes/issues/59>
>
> Hi,
> I have two bugs, but one is already reported here (\_plugin not found on com…pile from C++/IDE but working within the editor\_) ( \*\*#57\*\* )
> 
> The other bug is that the engine need to compile Electronic Nodes everytime i compile with LiveCoding (\_because i cannot compile from C++, it's say "cannot open file UnrealEditor-ElectronicNodes.dll" or something like that\_)
> 
> It says that the plugin files "was modified or is new" (\_like on the screenshot below\_) and compile it everytime, but i can last up to 5-10 seconds (\_instead of almost-instant compile without Electronic Nodes\_)
> 
> !\[image\](https://user-images.githubusercontent.com/83862259/163656546-f83ec822-31d6-409a-bb94-c21075f0af7c.png)
> 
> 
> - Unreal Engine version: 5.0
> - Operating System: Windows 10 64 bits
> 
> 
> Maybe it was already like this on the previous engine version ?? But on 4.27 with Darker Nodes & Electronic Nodes the compile time was really quick, and, with the same project, and only Electronic Nodes, it last much longer when Electronic Node is activated.
> 
> Thanks !

(The missing keyword were: Live Coding plugin recompilation every time it is triggered)

Also, I wanted to bump the topic because the amount of people it may concern is veeeery high.

---

<div class="post-metadata">

**Author:** ![neofuturelabs](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neofuturelabs/32/1194562_2.png) [@neofuturelabs](https://forums.unrealengine.com/u/neofuturelabs)\
**Post date:** [April 19, 2022, 12:56pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/12 "2022-04-19T12:56:58Z")

</div>

Another workaround I found is to move the plugin’s project folder from the engine folder into your project/Plugins folder so that it builds alongside your project.

This makes your project more portable too, so I think I’m actually going to be doing this regardless for any plugins I acquire from now on.

---

<div class="post-metadata">

**Author:** ![Recursoft](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Recursoft](https://forums.unrealengine.com/u/Recursoft)\
**Post date:** [April 19, 2022, 7:04pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/13 "2022-04-19T19:04:39Z")

</div>

I think 5.0.1 which was released today may have fixed this.

---

<div class="post-metadata">

**Author:** ![Wayne\_Koorts](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wayne_koorts/32/713752_2.png) [@Wayne\_Koorts](https://forums.unrealengine.com/u/Wayne_Koorts)\
**Post date:** [April 19, 2022, 9:22pm UTC](https://forums.unrealengine.com/t/why-does-ue5-compile-every-module-every-time/521356/14 "2022-04-19T21:22:47Z")

</div>

> I think 5.0.1 which was released today may have fixed this.

@Recursoft Yep you’re right, looks good now! I’ve removed the bUsePrecompiled flag from all my Marketplace plugins and they are no longer included in every build. Thanks for logging the bug for us!
