Blender Git Loki

Git Commits -> Revision cfa101c2

Revision cfa101c2 by Lukas Stockner (master)
October 2, 2020, 17:26 (GMT)
Cycles: Add command line option for overriding the compute device

The current way of setting the compute device makes sense for local
use, but for headless rendering it it a massive pain to get Cycles
to use the correct device, usually involving entire Python scripts.

Therefore, this patch adds a simple command-line option to Blender
for specifying the type of device that should be used. If the option
is present, the settings in the user preferences and the scene are
ignored, and instead all devices matching the specified type are used.

Differential Revision: https://developer.blender.org/D9086

Commit Details:

Full Hash: cfa101c22871c3d115f854e23f8b656b1c58a304
Parent Commit: 90a27d5
Lines Changed: +67, -4

7 Modified Paths:

/intern/cycles/blender/addon/engine.py (+9, -0) (Diff)
/intern/cycles/blender/blender_device.cpp (+13, -0) (Diff)
/intern/cycles/blender/blender_python.cpp (+39, -0) (Diff)
/intern/cycles/blender/blender_session.cpp (+1, -0) (Diff)
/intern/cycles/blender/blender_session.h (+1, -0) (Diff)
/intern/cycles/util/util_string.cpp (+3, -3) (Diff)
/intern/cycles/util/util_string.h (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021