Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-06-05 20:50:22 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-06-08 12:15:39 +0300
commit27ed75271c1948abe5a420d881686406bf8e0ce8 (patch)
tree1b83ef7fd69f9c65a05f479f3eb6ed5924848381 /intern/cycles/device/device.h
parent267c7b098d1312b6a0d71eed877f6d27b182c0b1 (diff)
Cycles: Make hair, object and motion blur selective compiled into OpenCL
This features are now based on the scene settings, so scenes without those features used are rendered even faster. This gives about 30% speedup on the AMD A10 APU here, but at the same time it does not mean such an improvement will happen on all the hardware. That being said, the Tonga device here seems to have no measurable difference. In any case it seems handy to have for the future, when we'll want to support SSS in the kernel or to port selective compilation/split kernel to CUDA devices.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r--intern/cycles/device/device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h
index 8ac3df1797c..6b4a190bbf0 100644
--- a/intern/cycles/device/device.h
+++ b/intern/cycles/device/device.h
@@ -92,6 +92,11 @@ public:
*/
int nodes_features;
+ /* BVH/sampling kernel features. */
+ bool use_hair;
+ bool use_object_motion;
+ bool use_camera_motion;
+
DeviceRequestedFeatures()
{
/* TODO(sergey): Find more meaningful defaults. */
@@ -99,6 +104,9 @@ public:
max_closure = 0;
max_nodes_group = 0;
nodes_features = 0;
+ use_hair = false;
+ use_object_motion = false;
+ use_camera_motion = false;
}
bool modified(const DeviceRequestedFeatures& requested_features)