Can I just check that you logged off and back on again OR restarted the computer after setting the env var? Windows doesn’t automatically update env vars here.
Hi Mike,
Good catch, I hadn’t restarted. After a restart it is now rendering with only 1 of the CPUs! So I can confirm that it does look like that works.
Thanks
Nick
ok, cool. I’ll have a chat with the Morgan when he gets into the office later today.
Glad to hear the environment variable works!
I’ve updated the 3dsmax plugin files and would greatly appreciate it if you could test the actual fix now to ensure we’re handling it properly!
First off, delete that environment variable I had you set up (VRAY_USE_THREAD_AFFINITY=0). Then ensure that the variable is no longer affecting your environment so that we know the fix in the plugins works. You can verify this by restarting or logging out and in and rerunning the job and seeing the CPU Affinity is broken.
Attached are the 3dsmax and 3dscmd plugins files with the proposed fix. Back up those files in your repository like you did previously and copy these new ones into their respective spots:
“YourRepo\DeadlineRepository8\plugins\3dsmax”
“YourRepo\DeadlineRepository8\plugins\3dsCmd”
Now that we know the variable isn’t interfering anymore. Resubmit your 3dsmax and your 3dscmd jobs (since you now have the update plugins in your repo) and, if all goes according to plan, the CPU Affinity will be fixed without you manually creating that environment variable on each machine.
Let me know how that goes! If you have any questions let me know.
Cheers
3dsmax VRay CPU Affinity Fixes.zip (41.9 KB)
Hi Morgan,
I hesitate to say this… but it’s not working. 3dsmax.exe inherits the affinity from the Deadline slave as before, but as soon as it starts rendering it jumps to all cores and 100% CPU usage.
Nick
Hey Nick,
Never hesitate to say that! This newer version I’ve attached should fix it and I have confirmed that the variable gets set (3dsmax reports that it sees it). So this one should work . Did the 3dscmd plugin work or was that one also broken?
Cheers
3dsmax CPU Affinity.zip (31.2 KB)
Hey Nick,
Just checking, was this all resolved and did 3dsCmd plugin also need fixing?
Hi Mike,
We never use 3ds cmd plugin so I’m not sure about that, it definitely works for the 3ds max plugin though.
Thanks
Nick