can vray adjust render core number?

can vray adjust/set how many core use to render?long time ago we always set low priority to render, so computer can running smooth while rendering, but few year ago, even set to low priority render, using other application quite lag too, need to set affinity(reduce core) at task manager. got any other easier method to reduce rendering core?

Hello,

You could use MAXScript like this
renderers.current.system_numThreads=7

This will tell V-Ray to use 7 threads.

Best regards,
Yavor

thanks, is it possible set it current core -1? so create one script i can use at other system.

hello
you can put this to the system variables of a render node:

VRAY_NUM_THREADS

with a desired number of threads

kind regards
Alex

thanks for your help, but “VRAY_NUM_THREADS” look like cant work, at the end i use “renderers.current.system_numThreads=sysInfo.cpucount-1”.