# Niagara Component: How to avoid FPS drop for first-time activation?

**URL:** <https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096>\
**Category:** FX\
**Tags:** General, unreal-engine, question, UE4-27\
**Created:** [January 22, 2022, 1:15am UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096 "2022-01-22T01:15:23Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Arterbury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tim_arterbury/32/266094_2.png) [@Tim\_Arterbury](https://forums.unrealengine.com/u/Tim_Arterbury)\
**Post date:** [January 22, 2022, 1:15am UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/1 "2022-01-22T01:15:24Z")

</div>

I have a Niagara Actor Component that I turn on/off at different times during my game.

The first time I use the “Activate” blueprint node on my Niagara Component, my game has a brief drop in FPS, but then quickly recovers. For the remainder of the game, calling “Activate” or “Deactivate” subsequent times does not produce any noticeable FPS drops. It is only the first time I call “Activate” that I experience the FPS drop.

Is there any way I can prevent the FPS drop that occurs for first-time `Activation` of my Niagara component? Is there a way I can pre-allocate the needed Niagara resources during game startup, so when I first call “Activate” to display my particles, I don’t experience an FPS drop?

**Extra Details:**  
To turn on the Niagara particle system I use the “Activate” blueprint node, and to turn off the particle system I use the “Deactivate” blueprint node. The Niagara Component has “Auto activate” set to off.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65c1290b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65c1290b](https://forums.unrealengine.com/u/anonymous_user_65c1290b)\
**Post date:** [February 3, 2022, 4:09pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/2 "2022-02-03T16:09:08Z")

</div>

Hey there,  
I’m very new here so I’m sorry for any faults in advance.  
I have the same problem without using any “acitvate” or “deactivate” features.  
I have a simple level with a looped niagara actor in it.  
The fps drops every time the niagara particles are shown and the loop is active.  
It seems to me that the Niagara Plugin is source of the Problem.

Thank you for any ideas or hints.

---

<div class="post-metadata">

**Author:** ![Tim\_Arterbury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tim_arterbury/32/266094_2.png) [@Tim\_Arterbury](https://forums.unrealengine.com/u/Tim_Arterbury)\
**Post date:** [February 3, 2022, 10:29pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/3 "2022-02-03T22:29:35Z")

</div>

The problem you are experiencing sounds like the Niagara particle system you are using is too processor intensive for the computer hardware you are using. To remedy this, you will need to try simplifying your particle system by spawning less particles, using less geometry, using less intensive materials, trying using GPU compute instead of CPU, etc.

The problem I am having is not what you describe. My particle system is able to run just fine on my computer (Oculus Quest 2), but the first time I launch the particle system, it causes a 1-2 second FPS drop in the rendering engine. This FPS drop is likely due to Niagara allocating some resources for Unreal’s rendering engine. I want to find a way to force this resource allocation to happen at the start of my app so it does not cause a frame drop later when the Niagara particle system is actually activated.

I have tried many solutions to solve this issue and nothing was successful.

**I would love to know if anyone knows how to force Niagara to preallocate rendering resources during the Niagara component construction instead of the first time the Niagara particle system is actually rendered on screen.**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_65c1290b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_65c1290b](https://forums.unrealengine.com/u/anonymous_user_65c1290b)\
**Post date:** [February 4, 2022, 11:37am UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/4 "2022-02-04T11:37:25Z")

</div>

Thank you very much for your answer. I solved the Problem by decreasing the particle number from 160.000 to 16.000.  
Now my system is stable. I hope someone can help you to solve your problem.  
I’m very new to unreal and I’m not able to help you. Sorry.

---

<div class="post-metadata">

**Author:** ![Tim\_Arterbury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tim_arterbury/32/266094_2.png) [@Tim\_Arterbury](https://forums.unrealengine.com/u/Tim_Arterbury)\
**Post date:** [February 4, 2022, 6:38pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/5 "2022-02-04T18:38:35Z")

</div>

Glad I could help resolve your problem! I wish there were more people active on the forum to help with these kinds of things. My personal experience with the Unreal forums (and the old Unreal AnswerHub) for the last couple years has been that I rarely find help ☹ . Very different from my experience on the [JUCE C++ forum](https://forum.juce.com/) (another development tool I use).

If anyone else finds this thread, here is a restatement of the problem I am looking to solve:  
**I would like to know how to force Niagara to preallocate rendering resources during the Niagara component construction (or some sort of initialization stage) instead of allocating rendering resources first time the Niagara particle system is rendered visible on-screen.** For my use case, I would like the rendering resources of some select Niagara particle systems to persist the entirety of the game’s runtime.

---

<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:** [March 7, 2022, 2:12pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/6 "2022-03-07T14:12:00Z")

</div>

There isn’t really a good solution for this at the moment, but here are some things to consider:

1. [Set up a PSO cache](https://docs.unrealengine.com/4.26/en-US/SharingAndReleasing/PSOCaching/). Some gpu drivers need to recompile shaders on load, resulting in a notable hitch. With the cache set up, the hitch is gone.
2. Preload the textures that your materials use. If you know you’re about to fire off an effect in the next few seconds, load the required assets via the streaming manager.
3. Bute force - you can just place all effects you want to work without delay somewhere hidden into the level. This guarantees that all the shader and texture work is done when the level is loaded.

---

<div class="post-metadata">

**Author:** ![MeloinUnreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeloinUnreal](https://forums.unrealengine.com/u/MeloinUnreal)\
**Post date:** [January 28, 2023, 11:28am UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/7 "2023-01-28T11:28:29Z")

</div>

> [@Michael.Galetzka](#):
>
> Bute force - you can just place all effects you want to work without delay somewhere hidden into the level. This guarantees that all the shader and texture work is done when the level is loaded.

Hello, Tim! I have the exact same problem for Niagara VFX for firing system. Did you figure out how to allocate resources ahead of VFX calls?

---

<div class="post-metadata">

**Author:** ![MeloinUnreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeloinUnreal](https://forums.unrealengine.com/u/MeloinUnreal)\
**Post date:** [February 2, 2023, 1:45pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/8 "2023-02-02T13:45:53Z")

</div>

I fixed it with PSO caching. Just follow this [video](https://www.youtube.com/watch?v=Mp7BPbA8IiY&t=322s)

---

<div class="post-metadata">

**Author:** ![Tim\_Arterbury](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tim_arterbury/32/266094_2.png) [@Tim\_Arterbury](https://forums.unrealengine.com/u/Tim_Arterbury)\
**Post date:** [June 9, 2023, 10:23pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/9 "2023-06-09T22:23:51Z")

</div>

Amazing, thank you for sharing this, I will try this!

---

<div class="post-metadata">

**Author:** ![marqueix\_Oxy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@marqueix\_Oxy](https://forums.unrealengine.com/u/marqueix_Oxy)\
**Post date:** [April 4, 2024, 3:58pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/10 "2024-04-04T15:58:36Z")

</div>

it worked?? I have the same problem

---

<div class="post-metadata">

**Author:** ![Wimtar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wimtar/32/88718_2.png) [@Wimtar](https://forums.unrealengine.com/u/Wimtar)\
**Post date:** [September 12, 2024, 4:45pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/11 "2024-09-12T16:45:52Z")

</div>

Now I just got here… Did you get the PSO stuff to work? Any other solution?

---

<div class="post-metadata">

**Author:** ![InverseLerp1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inverselerp1/32/1207581_2.png) [@InverseLerp1](https://forums.unrealengine.com/u/InverseLerp1)\
**Post date:** [September 13, 2024, 1:20am UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/12 "2024-09-13T01:20:59Z")

</div>

Would need more details about your NIagara System to provide help! The answer varies greatly depending on its complexity!

---

<div class="post-metadata">

**Author:** ![Wimtar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wimtar/32/88718_2.png) [@Wimtar](https://forums.unrealengine.com/u/Wimtar)\
**Post date:** [September 13, 2024, 3:50pm UTC](https://forums.unrealengine.com/t/niagara-component-how-to-avoid-fps-drop-for-first-time-activation/274096/13 "2024-09-13T15:50:35Z")

</div>

Hi InverseLerp\_, I’m really asking about whether any of these posters got the PSO fix to work. I don’t think the complexity of my niagara systems are too relevant- I get the exact behavior as the OP but there was never a follow up as to whether the PSO fix worked.
