diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-16 14:34:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-16 14:39:02 +0300 |
commit | 5d5077957e6652526f6976a043b2cc49980293e8 (patch) | |
tree | 2f904554e5afc5e9a8a50d7224773c01224dc0c8 /intern | |
parent | 5684ad80723454f0d910aad3fa48240da19c4e3b (diff) |
Cycles; Correction to previous debug print to survive prints from multiple threads
This commit basically makes it so statistics print from different BVH trees are not
being interleaved with each other. Glog ensures this when debug print is done as a
single put to stream operator.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index dde8e455781..32946c8b47c 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -275,17 +275,14 @@ BVHNode* BVHBuild::run() } } - VLOG(1) << "BVH built in " - << 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); + VLOG(1) << "BVH build statistics:\n" + << " Build time: " << time_dt() - build_start_time << "\n" + << " Total number of nodes: " + << rootnode->getSubtreeSize(BVH_STAT_NODE_COUNT) << "\n" + << " Number of inner nodes: " + << rootnode->getSubtreeSize(BVH_STAT_INNER_COUNT) << "\n" + << " Number of leaf nodes: " + << rootnode->getSubtreeSize(BVH_STAT_LEAF_COUNT) << "\n"; return rootnode; } |