Use core affinity on windows to improve performance

This commit is contained in:
hailIulius
2016-04-27 19:35:32 +02:00
committed by Laurent Clouet
parent 32540e7712
commit be3a30facc
4 changed files with 30 additions and 0 deletions

View File

@@ -221,6 +221,7 @@ public class Job {
Map<String, String> new_env = new HashMap<String, String>();
new_env.put("BLENDER_USER_CONFIG", config.workingDirectory.getAbsolutePath().replace("\\", "\\\\"));
new_env.put("CORES", Integer.toString(config.getNbCores()));
for (String arg : command1) {
switch (arg) {