tyFlow Forum
Tyflow 016127 spawn node - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html)
+--- Thread: Tyflow 016127 spawn node (/thread-2575.html)



Tyflow 016127 spawn node - shirani - 08-11-2021

I think the spawn node has a bug


RE: Tyflow 016127 spawn node - tyFlow - 08-11-2021

Hi Shirani,

This is not a bug. Because you set spawn mode to "per step" and you haven't sent Spawned particles out to another event, you're building up a huge number of particles in the same event because you're doubling the particle count each frame and eventually running out of RAM:

Code:
frame 0: 5 particles
frame 1: 10  particles (5 particles each spawned 1 new particle per step)
frame 2: 20  particles (10 particles each spawned 1 new particle per step)
frame 3: 40 particles (...etc....)
frame 4: 80 particles
frame 5: 160 particles
frame 6: 320 particles  
frame 7: 640 particles
....
frame 25: 167772160 particles (167 million particles on frame 25! )



RE: Tyflow 016127 spawn node - shirani - 08-11-2021

(08-11-2021, 02:46 PM)tyFlow Wrote: Hi Shirani,

This is not a bug. Because you set spawn mode to "per step" and you haven't sent Spawned particles out to another event, you're building up a huge number of particles in the same event because you're doubling the particle count each frame and eventually running out of RAM:

Code:
frame 0: 5 particles
frame 1: 10  particles (5 particles each spawned 1 new particle per step)
frame 2: 20  particles (10 particles each spawned 1 new particle per step)
frame 3: 40 particles (...etc....)
frame 4: 80 particles
frame 5: 160 particles
frame 6: 320 particles  
frame 7: 640 particles
....
frame 25: 167772160 particles (167 million particles on frame 25! )

Right thank you