diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-16 11:42:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-16 13:05:53 +0300 |
commit | 5684ad80723454f0d910aad3fa48240da19c4e3b (patch) | |
tree | c870fc33819aba9c4286d2b1639c63e94f98f85a | |
parent | fd58f5ac9dc75d0d90b4a885329c3a26959ccbd7 (diff) |
Cycles: Report BVH statistics after build
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 8 |
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; } |