Cycles: Report BVH statistics after build

This commit is contained in:
Sergey Sharybin 2015-01-16 13:42:21 +05:00
parent fd58f5ac9d
commit 5684ad8072
1 changed files with 8 additions and 0 deletions

View File

@ -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;
}