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:
authorMilan Jaros <jar091>2020-07-10 12:49:52 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-07-10 18:10:05 +0300
commitad45b8d6a439f131bae545e054ba5e31a95bb0ea (patch)
tree72e2382d079366b5324f6f2b82450d694394808d /intern/cycles/util
parentd8e648c352debfe9664d3c312bdb6cee5fcefbf3 (diff)
Cycles: optimize camera inside volume tests
Only run when there are volumes in the scene, and compute in parallel. Ref T56939 Differential Revision: https://developer.blender.org/D8261
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_tbb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_tbb.h b/intern/cycles/util/util_tbb.h
index 301cb80c5b0..206ba106ca6 100644
--- a/intern/cycles/util/util_tbb.h
+++ b/intern/cycles/util/util_tbb.h
@@ -34,6 +34,11 @@ using tbb::blocked_range;
using tbb::enumerable_thread_specific;
using tbb::parallel_for;
+static inline void parallel_for_cancel()
+{
+ tbb::task::self().cancel_group_execution();
+}
+
CCL_NAMESPACE_END
#endif /* __UTIL_TBB_H__ */