From 5684ad80723454f0d910aad3fa48240da19c4e3b Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 16 Jan 2015 13:42:21 +0500 Subject: Cycles: Report BVH statistics after build --- intern/cycles/bvh/bvh_build.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'intern/cycles/bvh') diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index 40f28432d05..dde8e455781 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; } -- cgit v1.2.3