Particle System not starting exactly when the start function is called

Hi there!

I’ve noticed that the first particle in the particle system does not render exactly when the start function is called. Instead it takes some time, which varies depending on the emitRate of the particle system.

So my question is. Is there a way to immediately show the first particle in a particle system?

I’ve set up this playground https://playground.babylonjs.com/#AB1AKY#1 to show what I am talking about. by pressing the “s” key, you are starting the particle system and, with “d” you stop it. Note the slight delay between when you press the “s” key and when the first particle gets displayed.

I suppose it’s due to your value of emitRate, setting it to 100 particles per frame for example make them spawning just after the key pressed.

I’m note sure if my tweak really works, but here a try with a prewarm: https://playground.babylonjs.com/#AB1AKY#2

Yes, I tried that as well. But it still looks like there’s a delay, unfortunately.

The problem is that I also need the emitRate to be low. Something like 2 or 3

I think you are looking for preWarmCycles which helps warming up the system ???

https://playground.babylonjs.com/#AB1AKY#3

2 Likes

Yes, that’s exactly what I was looking for. Thanks a lot!

1 Like