diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-11-22 11:54:51 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-11-22 11:54:51 +0300 |
commit | 56ead9d34b8f473a44ba9f9fb0ff4878ea28af3e (patch) | |
tree | 02f434f6376f6d8a4e1dbe04db957f3d96545135 /intern/cycles/render/session.cpp | |
parent | 5c5df9dc182e4e5a3c6ced7f763a82e8668f8d42 (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/render/session.cpp')
-rw-r--r-- | intern/cycles/render/session.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp index b5bc4109630..762e49a8f0a 100644 --- a/intern/cycles/render/session.cpp +++ b/intern/cycles/render/session.cpp @@ -639,6 +639,7 @@ DeviceRequestedFeatures Session::get_requested_device_features() BakeManager *bake_manager = scene->bake_manager; requested_features.use_baking = bake_manager->get_baking(); + requested_features.use_integrator_branched = (scene->integrator->method == Integrator::BRANCHED_PATH); return requested_features; } |