Mozzarino Posted April 1, 2020 Share Posted April 1, 2020 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? Quote Link to comment Share on other sites More sharing options...
Skybar Posted April 1, 2020 Share Posted April 1, 2020 Instead of setpointgroup you can: i@group_groupname = 1; Quote Link to comment Share on other sites More sharing options...
Mozzarino Posted April 1, 2020 Author Share Posted April 1, 2020 8 minutes ago, Skybar said: Instead of setpointgroup you can: i@group_groupname = 1; It is faster indeed, no idea why... How can I use the grp variable I created to set the particle group in the way you showed? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.