[Bf-blender-cvs] [720e564882] master: Cycles: Allow up to 4 motion curve primitives per BVH node

Sergey Sharybin noreply at git.blender.org
Thu Jan 12 18:27:32 CET 2017


Commit: 720e5648824c102155ba3dd4551a73e5589a0272
Author: Sergey Sharybin
Date:   Thu Jan 12 18:23:23 2017 +0100
Branches: master
https://developer.blender.org/rB720e5648824c102155ba3dd4551a73e5589a0272

Cycles: Allow up to 4 motion curve primitives per BVH node

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.

===================================================================

M	intern/cycles/bvh/bvh_params.h

===================================================================

diff --git a/intern/cycles/bvh/bvh_params.h b/intern/cycles/bvh/bvh_params.h
index 38a2e557a5..6d42647573 100644
--- a/intern/cycles/bvh/bvh_params.h
+++ b/intern/cycles/bvh/bvh_params.h
@@ -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;




More information about the Bf-blender-cvs mailing list