When we update particle system, we have a spawn rate who is the number of particle by seconds.1/SpawnRate is the time by spawn.
ParticleSystem time is increased by ElapsedTime each update.When SpawnTimer >= 1/SpawnRate, we spawn a particle.
Now the probleme is to sync particle with time.If we spawn a particle, the time is not exactly 1/SpawnRate so the particle already has a lifeTime>0.How sync that correctly ? Is it correct to compute deltaTime and Update the particle using this deltaTime ? What's about a big lag so need to spawn more than one particle ?
Edited by Alundra, 23 December 2012 - 01:51 AM.