Particle stutters the first time it is spawned (UE4)

818 Views Asked by At

The first time I spawn a particle, it seems to stutter and ends up with a weird square around it (see screenshot). The problem does not occur when spawning it fom the second time and onwards.

Even if I close the game window and execute it again, the problem does not happen again. It only returns if I completely close and reopen the Unreal Engine.

To spawn the particle, I am using the "Spawn Emmiter at Location" node. Also I am using Unreal 4.25.0.

After running the profiler, I can see that there is a spike in the Game Thread in the exact frame when the problem occurs. It indicates that the spike is in the "self" event name, but I don't know what that means.

Does anyone know what may be causing this and how to fix it? Any tips on how to further investigate?

2

There are 2 best solutions below

0
On

Resolved by spawning the particle system offscreen, at the beginning of the level. By doing that, when I actually want to spawn the particle for real, it will already be the second time and work properly.

0
On

I know it's late, but I suggest you to take a look at PSO Caching