diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-12 18:54:08 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-01-12 18:54:08 +0300 |
commit | 76a4cf1941ef0f1e8ca2dd641fb94703dce5a9b0 (patch) | |
tree | 0b00e23e25ee2df1299d832e1d7b294a807796c9 /intern/cycles/bvh/bvh_params.h | |
parent | 0421ae056d8ebb7e10894e39d86334b41c061f39 (diff) |
Cycles: Use separate limit for motion primitives for BVH node limits
This way we can have different limits for regular and motion curves
which we'll do in one of the upcoming commits in order to gain some
percents of speedup.
The reasoning here is that motion curves are usually intersecting
lots of others bounding boxes, which makes it inefficient to have
single primitive in the leaf node.
Diffstat (limited to 'intern/cycles/bvh/bvh_params.h')
-rw-r--r-- | intern/cycles/bvh/bvh_params.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h index 431e42a0d6a..38a2e557a5d 100644 --- a/intern/cycles/bvh/bvh_params.h +++ b/intern/cycles/bvh/bvh_params.h @@ -43,7 +43,9 @@ public: /* number of primitives in leaf */ int min_leaf_size; int max_triangle_leaf_size; + int max_motion_triangle_leaf_size; int max_curve_leaf_size; + int max_motion_curve_leaf_size; /* object or mesh level bvh */ bool top_level; @@ -80,7 +82,9 @@ public: min_leaf_size = 1; max_triangle_leaf_size = 8; + max_motion_triangle_leaf_size = 8; max_curve_leaf_size = 1; + max_motion_curve_leaf_size = 1; top_level = false; use_qbvh = false; |