diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-08 20:10:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-01-09 14:14:20 +0300 |
commit | 8044e5f2d771a1c3ee1a116132ddc09ce3452cbb (patch) | |
tree | a30b0f3f2e90b197e9ebaebae6ceab108d9548d2 /intern/cycles/bvh/bvh2.h | |
parent | b486088218f66810b97294f38f246e4650d32f2b (diff) |
Cycles: Make BVH wider prior to packing
This allows to do more non-trivial tree modifications to make
it more dense and more friendly for vectorization.
Diffstat (limited to 'intern/cycles/bvh/bvh2.h')
-rw-r--r-- | intern/cycles/bvh/bvh2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh2.h b/intern/cycles/bvh/bvh2.h index ecc697567bb..f38cdf5aca9 100644 --- a/intern/cycles/bvh/bvh2.h +++ b/intern/cycles/bvh/bvh2.h @@ -48,6 +48,9 @@ protected: friend class BVH; BVH2(const BVHParams& params, const vector<Object*>& objects); + /* Building process. */ + virtual BVHNode *widen_children_nodes(const BVHNode *root) override; + /* pack */ void pack_nodes(const BVHNode *root); |