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/bvh_embree.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/bvh_embree.h')
-rw-r--r-- | intern/cycles/bvh/bvh_embree.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_embree.h b/intern/cycles/bvh/bvh_embree.h index 9990826ba98..983b6dc07da 100644 --- a/intern/cycles/bvh/bvh_embree.h +++ b/intern/cycles/bvh/bvh_embree.h @@ -40,6 +40,10 @@ public: virtual ~BVHEmbree(); RTCScene scene; static void destroy(RTCScene); + + /* Building process. */ + virtual BVHNode *widen_children_nodes(const BVHNode *root) override; + protected: friend class BVH; BVHEmbree(const BVHParams& params, const vector<Object*>& objects); |