Cycles: Allow up to 4 motion curve primitives per BVH node
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 Jan 2017 17:23:23 +0000 (18:23 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 Jan 2017 17:23:23 +0000 (18:23 +0100)
This avoids intersection AABB of different curve primitives
which makes it less ray-to-primitive intersections.

This gives about 30% speedup of hair rendering in the barber
shop scenes here. There is still some work to be done on those
files to solve major speed issues on certain frames.

intern/cycles/bvh/bvh_params.h

index 38a2e557a5d24d2d83ede6307bae4c0bb660dc7b..6d4264757370146e0c1da43c5bedbc42253e663f 100644 (file)
@@ -84,7 +84,7 @@ public:
                max_triangle_leaf_size = 8;
                max_motion_triangle_leaf_size = 8;
                max_curve_leaf_size = 1;
-               max_motion_curve_leaf_size = 1;
+               max_motion_curve_leaf_size = 4;
 
                top_level = false;
                use_qbvh = false;