# Niagara Systems Always Recompiling In Editor

**URL:** <https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403>\
**Category:** FX\
**Tags:** unreal-engine, editor, question, CPP\
**Created:** [May 6, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403 "2019-05-06T14:13:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![agaubatz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@agaubatz](https://forums.unrealengine.com/u/agaubatz)\
**Post date:** [May 6, 2019, 2:13pm UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/1 "2019-05-06T14:13:59Z")

</div>

I’ve been trying out Niagara and for the most part it works great! However, whenever I launch the editor, it has to recompile all my systems, even if they have not changed and the game source code has not changed. That means I have to run through whatever I’m trying to test twice, once to trigger everything to compile and then once after the VFX are ready.

It looks like it’s trying to compare things against a cache, but never gets a hit. In the debugger, `NiagaraScript::AreScriptAndSourceSynchronized()` is returning false for everything.

Is this normal?

Sample of logs:

```
[2019.05.05-01.06.32:167][0]LogNiagaraEditor: OpNode Boolean::LogicAnd, Package /Niagara/Functions/System/SystemChangeState: reallocated existing pins to add new extension pin
[2019.05.05-01.06.32:167][0]LogNiagaraEditor: OpNode Boolean::LogicAnd, Package /Niagara/Modules/System/SystemLifeCycle: reallocated existing pins to add new extension pin
[2019.05.05-01.06.32:171][0]LogNiagara: AreScriptAndSourceSynchronized reference id 2 doesn't match. 273125784D49144FF7772483435FFD51 != BB8F240149222D314E52D68B0B720EB1, source /Niagara/Modules/Emitter/EmitterLifeCycle.EmitterLifeCycle:NiagaraScriptSource_0.NiagaraGraph_0
[2019.05.05-01.06.32:172][0]LogNiagara: AreScriptAndSourceSynchronized reference id 3 doesn't match. 638487F74E3E3A7FFA10D680EE0BB138 != A49D05054EC85BB83EEE57AEFC2340FA, source /Niagara/Functions/Emitter/EmitterChangeState.EmitterChangeState:NiagaraScriptSource_0.NiagaraGraph_0
[2019.05.05-01.06.32:172][0]LogNiagara: AreScriptAndSourceSynchronized reference id 4 doesn't match. 638487F74E3E3A7FFA10D680EE0BB138 != A49D05054EC85BB83EEE57AEFC2340FA, source /Niagara/Functions/Emitter/EmitterChangeState.EmitterChangeState:NiagaraScriptSource_0.NiagaraGraph_0
[2019.05.05-01.06.32:172][0]LogNiagara: AreScriptAndSourceSynchronized reference id 5 doesn't match. 638487F74E3E3A7FFA10D680EE0BB138 != A49D05054EC85BB83EEE57AEFC2340FA, source /Niagara/Functions/Emitter/EmitterChangeState.EmitterChangeState:NiagaraScriptSource_0.NiagaraGraph_0
[2019.05.05-01.06.32:172][0]LogNiagara: AreScriptAndSourceSynchronized reference id 6 doesn't match. 638487F74E3E3A7FFA10D680EE0BB138 != A49D05054EC85BB83EEE57AEFC2340FA, source /Niagara/Functions/Emitter/EmitterChangeState.EmitterChangeState:NiagaraScriptSource_0.NiagaraGraph_0
```

---

<div class="post-metadata">

**Author:** ![Frank\_Fella](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frank\_Fella](https://forums.unrealengine.com/u/Frank_Fella)\
**Post date:** [May 7, 2019, 3:17pm UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/2 "2019-05-07T15:17:26Z")

</div>

We’ve fixed these recompile issues, but unfortunately these fixes didn’t make the 4.22 release and will be in 4.23. If you’d like these changes sooner you can download the most recent changes from our Dev-Niagara development stream if you’re building from source.

---

<div class="post-metadata">

**Author:** ![agaubatz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@agaubatz](https://forums.unrealengine.com/u/agaubatz)\
**Post date:** [May 8, 2019, 3:50am UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/3 "2019-05-08T03:50:11Z")

</div>

Thanks, good to know!

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [July 9, 2019, 11:07am UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/4 "2019-07-09T11:07:45Z")

</div>

Hi, it took me some time to find it:

> Commit d9fd5515 by Frank Fella, 04/04/2019 10:06 PM “Niagara - Fix constant recompiling.”

I am cherry-picking this on top of UE4.22.3

---

<div class="post-metadata">

**Author:** ![Frank\_Fella](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Frank\_Fella](https://forums.unrealengine.com/u/Frank_Fella)\
**Post date:** [July 9, 2019, 2:23pm UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/5 "2019-07-09T14:23:17Z")

</div>

There are actually several changes which are necessary to fix this completely, they are 4898277, 4974092, 4977660, 5271690, 5748275, 6087261, 6093788, and 6452690. These changes will all be available in 4.23 which will go into preview builds soon, so it might be better to wait for that.

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [July 18, 2019, 12:18pm UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/6 "2019-07-18T12:18:07Z")

</div>

Hi Frank,

So I ended-up cherry-picking these 8 changes. Then I also had to checkout and resave all the Niagara Systems assets.

After that, we now have most of the NiagaraScript displaying some nice `is in-sync skipping compile..` 🙂

But we still have some dependencies that are seen has changed, and requires some recompiling at each editor startup:

```
[2019.07.18-11.50.16:620][526]LogNiagara: Emitter /Game/FX/Weapon/Reload/NS_ReloadRifle_01.NS_ReloadRifle_01:P_MuzzleFlashBase_01_0-P_MuzzleFlashBase_01 is merging changes from source /Game/FX/Weapon/Shooting_Muzzles/P_MuzzleFlashBase_01.P_MuzzleFlashBase_01 because its Change ID was updated.
[2019.07.18-11.50.16:657][526]LogNiagara: Emitter /Game/FX/Weapon/Reload/NS_ReloadRifle_01.NS_ReloadRifle_01:P_SingleFlash_01_3-P_SingleFlash_01 is merging changes from source /Game/FX/Weapon/Reload/P_SingleFlash_01.P_SingleFlash_01 because its Change ID was updated.
[2019.07.18-11.50.16:703][526]LogNiagara: System /Game/FX/Weapon/Reload/NS_ReloadRifle_01.NS_ReloadRifle_01 being compiled because graph changes were merged for a base emitter.
[2019.07.18-11.50.16:771][526]LogNiagaraEditor: '/Game/FX/Weapon/Reload/NS_ReloadRifle_01' Precompile took 0.067589 sec.

```

Could it be some Engine Content assets dependencies I would need to resave?

It’s a lot better though, so thank you for your answers.

Sébastien

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04d3017a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04d3017a](https://forums.unrealengine.com/u/anonymous_user_04d3017a)\
**Post date:** [August 6, 2019, 12:08am UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/7 "2019-08-06T00:08:29Z")

</div>

Are those revision numbers from perforce?  
Have you got the commit SHAs for the GitHub repository?

---

<div class="post-metadata">

**Author:** ![SRombauts](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SRombauts](https://forums.unrealengine.com/u/SRombauts)\
**Post date:** [August 27, 2019, 9:08am UTC](https://forums.unrealengine.com/t/niagara-systems-always-recompiling-in-editor/448403/8 "2019-08-27T09:08:38Z")

</div>

sorry, yes these changelist numbers are from Perforce, and it’s not easy to match them to github since a few of them are in fact only visible squashed into a merge commit (from a non public dev branch)
