add the ability to set the priority of the render process as commandline argument

This commit is contained in:
Rolf Aretz Lap
2017-01-05 09:58:27 +01:00
committed by Laurent Clouet
parent 2f00d7816d
commit d8aa315699
7 changed files with 105 additions and 4 deletions

View File

@@ -148,7 +148,12 @@ public class Mac extends OS {
}
if (this.hasNiceBinary.booleanValue()) {
// launch the process in lowest priority
actual_command.add(0, "19");
if (env != null) {
actual_command.add(0, env.get("PRIORITY"));
}
else {
actual_command.add(0, "19");
}
actual_command.add(0, "-n");
actual_command.add(0, NICE_BINARY_PATH);
}