# Shader compilation and Niagara deactivate issue

**URL:** <https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [July 24, 2025, 9:02pm UTC](https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661 "2025-07-24T21:02:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 24, 2025, 9:02pm UTC](https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661/1 "2025-07-24T21:02:39Z")

</div>

Hi! We’ve encountered an issue with Niagara particle systems’ Deactivate functionality when shaders for it are not yet compiled. Basically before they are Deactivate does nothing for the system. bAwaitingActivationDueToNotReady will be true and as soon as ready it’ll start and will stay stuck that way. For example in case of UAnimNotifyState\_TimedNiagaraEffect created ones.

We found solution but wanted to validate with you on that.

In UNiagaraComponent::DeactivateInternal, in else branch of “if (IsActive() && SystemInstanceController)” if statement:

if(UNiagaraSystem\* NiagaraSystem = Asset.Get())

{

if (bAwaitingActivationDueToNotReady || !IsWorldReadyToRun())

{

Super::Deactivate();

bAwaitingActivationDueToNotReady = false;

OnSystemComplete(true);

return;

}

}

Thank you

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [July 24, 2025, 9:02pm UTC](https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661/2 "2025-07-24T21:02:43Z")

</div>

**Steps to Reproduce**  
Ina test level create state Niagara particle system and call delayed Deactivate (0.1s) on it.

Create packaged build

Run it with -clearPSODriverCache

Observe particle system is not deactivated.

---

<div class="post-metadata">

**Author:** ![Michael.Galetzka](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/michael.galetzka/32/924122_2.png) [@Michael.Galetzka](https://forums.unrealengine.com/u/Michael.Galetzka)\
**Post date:** [July 29, 2025, 3:27pm UTC](https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661/3 "2025-07-29T15:27:08Z")

</div>

Hey Taras,

thanks for the report, I’ll create a ticket so this can get fixed for 5.7.

Regards,

Michael

---

<div class="post-metadata">

**Author:** ![jculparenanet](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jculparenanet](https://forums.unrealengine.com/u/jculparenanet)\
**Post date:** [August 28, 2026, 3:37pm UTC](https://forums.unrealengine.com/t/shader-compilation-and-niagara-deactivate-issue/2651661/4 "2026-08-28T15:37:56Z")

</div>

Was a ticket for this created? We are seeing this issue in 5.7, wanted to know what the status of this bug was.
