[Bf-blender-cvs] [5684ad8] master: Cycles: Report BVH statistics after build
Sergey Sharybin
noreply at git.blender.org
Fri Jan 16 11:06:00 CET 2015
Commit: 5684ad80723454f0d910aad3fa48240da19c4e3b
Author: Sergey Sharybin
Date: Fri Jan 16 13:42:21 2015 +0500
Branches: master
https://developer.blender.org/rB5684ad80723454f0d910aad3fa48240da19c4e3b
Cycles: Report BVH statistics after build
===================================================================
M intern/cycles/bvh/bvh_build.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index 40f2843..dde8e45 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -279,6 +279,14 @@ BVHNode* BVHBuild::run()
<< time_dt() - build_start_time
<< " seconds.";
+ VLOG(1) << "BVH statistics:";
+ VLOG(1) << " Total number of nodes: "
+ << rootnode->getSubtreeSize(BVH_STAT_NODE_COUNT);
+ VLOG(1) << " Number of inner nodes: "
+ << rootnode->getSubtreeSize(BVH_STAT_INNER_COUNT);
+ VLOG(1) << " Number of leaf nodes: "
+ << rootnode->getSubtreeSize(BVH_STAT_LEAF_COUNT);
+
return rootnode;
}
More information about the Bf-blender-cvs
mailing list