multithreaded scripting approach
#3
(11-06-2019, 10:55 AM)tyFlow Wrote: 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:

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.

THANK YOU VERY MUCH
  Reply


Messages In This Thread
multithreaded scripting approach - by nayan - 11-06-2019, 10:28 AM
RE: multithreaded scripting approach - by tyFlow - 11-06-2019, 10:55 AM
RE: multithreaded scripting approach - by nayan - 11-06-2019, 12:53 PM

Forum Jump: