diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-10 20:41:49 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-12 13:04:52 +0300 |
commit | bc7ff3c2b44e9cd8f3aea1a3943b787deede2838 (patch) | |
tree | b93c8de1b10b739fc7b7250305b4b0121f37a068 /intern/cycles/bvh/bvh_params.h | |
parent | c707b91ce6b14182a3a579b645cfd832fc1ae658 (diff) |
Cycles: Enable leaf split by primitive type and adopt BVH traversal for this
This commit enables BVH leaf nodes split by the primitive type and makes it
so BVH traversal code is now aware and benefits from this.
As was mentioned in original commit, this change is crucial to be able to do
single ray to multiple triangle intersection. But it also appears to give
barely visible speedup in some scene.
In any case there should be no noticeable slowdown, and this change is what
we need to have anyway.
Diffstat (limited to 'intern/cycles/bvh/bvh_params.h')
-rw-r--r-- | intern/cycles/bvh/bvh_params.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h index c4dc14710e3..3fa6ebd75af 100644 --- a/intern/cycles/bvh/bvh_params.h +++ b/intern/cycles/bvh/bvh_params.h @@ -49,11 +49,6 @@ public: /* QBVH */ int use_qbvh; - /* Split leaf nodes by primitive types, - * leaving node containing primitives of single type only. - */ - int use_split_leaf_types; - /* fixed parameters */ enum { MAX_DEPTH = 64, @@ -78,7 +73,6 @@ public: top_level = false; use_cache = false; use_qbvh = false; - use_split_leaf_types = false; } /* SAH costs */ |