diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-22 18:54:02 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-04-22 19:15:41 +0400 |
commit | 6974b69c61729cc80a72d78f02eb137c5097b129 (patch) | |
tree | 85642f54fffafae4f8df5129d3651292bae8a12c /intern/cycles/bvh/bvh_build.h | |
parent | 2108a616910dc814be13a0b640970bfe4b7eb4ce (diff) |
Cycles: optimization for hair BVH build, allow max 2 hair curves per leaf.
This gives me 14% reduction in render time for koro_final.blend.
Diffstat (limited to 'intern/cycles/bvh/bvh_build.h')
-rw-r--r-- | intern/cycles/bvh/bvh_build.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_build.h b/intern/cycles/bvh/bvh_build.h index ba10eb49412..a6b9916de9b 100644 --- a/intern/cycles/bvh/bvh_build.h +++ b/intern/cycles/bvh/bvh_build.h @@ -70,6 +70,8 @@ protected: BVHNode *create_leaf_node(const BVHRange& range); BVHNode *create_object_leaf_nodes(const BVHReference *ref, int start, int num); + bool range_within_max_leaf_size(const BVHRange& range); + /* threads */ enum { THREAD_TASK_SIZE = 4096 }; void thread_build_node(InnerNode *node, int child, BVHObjectBinning *range, int level); |