Hello Houdini Magicians,
This little bit of code is, according to the performance monitor and some debugging, slowing down my simulation... alot. Specially with a high number of particles.
The nPt comes from the nearpoint function. I analyzed the performance impact of the nearpoint function with many particles and it is not significant. Its the conditions and moving/removing particles from groups.
What is the optimal way to do this?