[Bf-blender-cvs] [ef27d8e] master: Cycles Standalone: Add option to set the tile size from the command line

Lukas Stockner noreply at git.blender.org
Wed Aug 10 19:18:44 CEST 2016


Commit: ef27d8ec5a7ce0370468171720d91426ea87d9d7
Author: Lukas Stockner
Date:   Mon Aug 8 21:09:12 2016 +0200
Branches: master
https://developer.blender.org/rBef27d8ec5a7ce0370468171720d91426ea87d9d7

Cycles Standalone: Add option to set the tile size from the command line

Since the optimal values depend on the device used, this option doesn't make much sense in the XML.
Therefore, it's now specified via the command line, just like the device itself.

===================================================================

M	intern/cycles/app/cycles_standalone.cpp

===================================================================

diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp
index 726e9a5..e8168bc 100644
--- a/intern/cycles/app/cycles_standalone.cpp
+++ b/intern/cycles/app/cycles_standalone.cpp
@@ -375,6 +375,8 @@ static void options_parse(int argc, const char **argv)
 		"--threads %d", &options.session_params.threads, "CPU Rendering Threads",
 		"--width  %d", &options.width, "Window width in pixel",
 		"--height %d", &options.height, "Window height in pixel",
+		"--tile-width %d", &options.session_params.tile_size.x, "Tile width in pixels",
+		"--tile-height %d", &options.session_params.tile_size.y, "Tile height in pixels",
 		"--list-devices", &list, "List information about all available devices",
 #ifdef WITH_CYCLES_LOGGING
 		"--debug", &debug, "Enable debug logging",




More information about the Bf-blender-cvs mailing list