11-06-2019, 10:55 AM
Call tf.SetThreaded as instructed in the Script operator comments, and then just change your for loop to use startInx/endInx instead of iterating over the whole particle array.
So instead of:
you'd use:
The threadInx variable is just there for convenience, if you need to track which thread is being used for a particular chunk of particles being evaluated.
So instead of:
Code:
for (int i = 0; i < eventParticleCount; i++)
you'd use:
Code:
for (int i = startInx; i < endInx; i++)
The threadInx variable is just there for convenience, if you need to track which thread is being used for a particular chunk of particles being evaluated.