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 14:34:07 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-16 14:39:02 +0300
commit5d5077957e6652526f6976a043b2cc49980293e8 (patch)
tree2f904554e5afc5e9a8a50d7224773c01224dc0c8 /intern/cycles/bvh
parent5684ad80723454f0d910aad3fa48240da19c4e3b (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/cycles/bvh')
-rw-r--r--intern/cycles/bvh/bvh_build.cpp19
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;
}