Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-01-16 11:42:21 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-16 13:05:53 +0300
commit5684ad80723454f0d910aad3fa48240da19c4e3b (patch)
treec870fc33819aba9c4286d2b1639c63e94f98f85a /intern/cycles/bvh
parentfd58f5ac9dc75d0d90b4a885329c3a26959ccbd7 (diff)
Cycles: Report BVH statistics after build
Diffstat (limited to 'intern/cycles/bvh')
-rw-r--r--intern/cycles/bvh/bvh_build.cpp8
1 files changed, 8 insertions, 0 deletions
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;
}