Hello, we are doing some analysis where I modify a scene and do a raytrance and than read the data back to matlab. All is working fine with the ZOS-api. But I notices that if I do the raytrace in zemax it takes about 20 seconds, in matlab with the same file the
"NSCRayTrace.RunAndWaitForCompletion();"
takes 75 seconds.
If I run the raytrace in Zemax with only one core it takes about 60 seconds.
Watching the Task Manager in windows looks like only one core is working if matlab calls the raytrace command.
Even if I set the
"NSCRayTrace.NumberOfCores = 4;"
variable. Right now we don't have the matlab parallel processing toolbox, could be this the issue and would buying the toolbox solve the performance problem?