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-11-22 11:54:51 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-11-22 11:54:51 +0300
commit56ead9d34b8f473a44ba9f9fb0ff4878ea28af3e (patch)
tree02f434f6376f6d8a4e1dbe04db957f3d96545135 /intern/cycles/device/device.h
parent5c5df9dc182e4e5a3c6ced7f763a82e8668f8d42 (diff)
Cycles: Make branched path tracer covered with requested features
This gives few percent extra memory saving for the CUDA kernel when using regular path tracing. Still more like an experiment, but will be handy in the future.
Diffstat (limited to 'intern/cycles/device/device.h')
-rw-r--r--intern/cycles/device/device.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/intern/cycles/device/device.h b/intern/cycles/device/device.h
index b956090a199..9324f5c7069 100644
--- a/intern/cycles/device/device.h
+++ b/intern/cycles/device/device.h
@@ -103,6 +103,9 @@ public:
/* Use subsurface scattering materials. */
bool use_subsurface;
+ /* Use branched integrator. */
+ bool use_integrator_branched;
+
DeviceRequestedFeatures()
{
/* TODO(sergey): Find more meaningful defaults. */
@@ -115,6 +118,7 @@ public:
use_camera_motion = false;
use_baking = false;
use_subsurface = false;
+ use_integrator_branched = false;
}
bool modified(const DeviceRequestedFeatures& requested_features)
@@ -127,7 +131,8 @@ public:
use_object_motion == requested_features.use_object_motion &&
use_camera_motion == requested_features.use_camera_motion &&
use_baking == requested_features.use_baking &&
- use_subsurface == requested_features.use_subsurface);
+ use_subsurface == requested_features.use_subsurface &&
+ use_integrator_branched == requested_features.use_integrator_branched);
}
/* Convert the requested features structure to a build options,
@@ -159,6 +164,9 @@ public:
if(!use_subsurface) {
build_options += " -D__NO_SUBSURFACE__";
}
+ if(!use_integrator_branched) {
+ build_options += " -D__NO_BRANCHED_PATH__";
+ }
return build_options;
}
};