# Same Niagara system having very poor performance on one actor and not the other

**URL:** <https://forums.unrealengine.com/t/same-niagara-system-having-very-poor-performance-on-one-actor-and-not-the-other/560229>\
**Category:** Asset Creation\
**Tags:** UE4-27, question\
**Created:** [May 18, 2022, 12:46pm UTC](https://forums.unrealengine.com/t/same-niagara-system-having-very-poor-performance-on-one-actor-and-not-the-other/560229 "2022-05-18T12:46:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![who-is-Ellie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@who-is-Ellie](https://forums.unrealengine.com/u/who-is-Ellie)\
**Post date:** [May 18, 2022, 12:46pm UTC](https://forums.unrealengine.com/t/same-niagara-system-having-very-poor-performance-on-one-actor-and-not-the-other/560229/1 "2022-05-18T12:46:17Z")

</div>

Hi there!

In my project, I’ve got a base c++ class for a weapon, in which at a certain point I spawn a niagara particle system for a bullet casing. On one weapon, the performance impact for spawning this particle system is almost unnoticeable. However, on another weapon derived from the same base class, the game dips an insane amount, with `World Tick Time` taking up a crazy amount of resources, as demonstrated in the video below.

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/b/13bf2375dbc6b797072a0a4827dfa867d7dc0779.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/b/13bf2375dbc6b797072a0a4827dfa867d7dc0779.mp4)

The code that spawns the particle system looks like this:

`UNiagaraFunctionLibrary::SpawnSystemAttached(EjectedCasing, MagazineAttachment, FName("ejection_port"), FVector::ZeroVector, EjectionSpawnVector, EAttachLocation::SnapToTarget, true, true);`

If you’d like to look more in depth, the whole file is here (the above code is found at like 382): [isolation-game/SWeaponBase.cpp at main · whoisEllie/isolation-game · GitHub](https://github.com/whoisEllie/isolation-game/blob/main/Isolation/Source/Isolation/Private/SWeaponBase.cpp)

Below are screenshots of my particle system and the two weapons.

 ![Screenshot 2022-05-18 at 13.34.58](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/1/5711a28da096e40d5b8ef8ecf4272bf0930e61d6.jpeg)  
 ![Screenshot 2022-05-18 at 13.35.01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/d/0cd8f258abeb7c39a052ce332fe0d789afe1999b.jpeg)  
 ![Screenshot 2022-05-18 at 13.35.27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/c/30cc52b9b9e0b91831d1f5c0544e17dd531f0a7c.jpeg)

I’m honestly really confused as to what it could be, and I’d appreciate any help,

Thanks,

- Ellie 🙂
