I’ve a CPS with 50000 particles.
I’d like to move them “one after the other”, not all toghether.
So, I’ve created an array (let’s name it “particlesThatMove”) in which, at a defined interval, I push a new random particle ID.
Checking this array of ID, my CPS particles should move or not
The problem is that the “SetParticle” function does not get an array of ID, just a range (from-to).
I know that I could check, in the “UpdateParticle” function, if the given particle “idx” is included in the “particlesThatMove” array, but this way I would have a massive iteration, that increase every time, so the CPU get overload…
Is there a better solution?
P.S. You could ask: why don’t you use a standard particle system? well, the answer is that with standard particle system I can’t get such a regular particle distribution on the mesh, and so it’s quite unpossible to me to give a regular shape to the mesh
This is my demo