Display compute method for the current project

This commit is contained in:
Jake Dube
2017-05-07 21:00:20 +02:00
committed by Laurent Clouet
parent 92a0a4938c
commit cb03b58dbc
7 changed files with 34 additions and 2 deletions

View File

@@ -230,9 +230,11 @@ public class Job {
String core_script = "";
if (getUseGPU() && config.getGPUDevice() != null && config.getComputeMethod() != ComputeType.CPU) {
core_script = "sheepit_set_compute_device(\"CUDA\", \"GPU\", \"" + config.getGPUDevice().getCudaName() + "\")\n";
gui.setComputeMethod("GPU");
}
else {
core_script = "sheepit_set_compute_device(\"NONE\", \"CPU\", \"CPU\")\n";
gui.setComputeMethod("CPU");
}
core_script += String.format("bpy.context.scene.render.tile_x = %1$d\nbpy.context.scene.render.tile_y = %1$d\n", getTileSize());
File script_file = null;