diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 14:43:19 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-04-04 14:43:19 +0300 |
commit | 5ab3a97dbbcfe2cb2bc7093f5e18a195eb31f080 (patch) | |
tree | f961318543f1ca5b5a506e04c29f00006259e1f1 /intern/cycles/render | |
parent | ba7c2b7b7317a3d7f81bf0e70468124a6c06e96d (diff) |
Cycles: Log overall time spent on building object's BVH
We had per-tree statistics already, but it's a bit tricky to see overall
time because trees could be building in parallel.
In fact, we can now print statistics for any TaskPool.
Diffstat (limited to 'intern/cycles/render')
-rw-r--r-- | intern/cycles/render/mesh.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index e565b25e193..6466d719859 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -1317,7 +1317,11 @@ void MeshManager::device_update(Device *device, DeviceScene *dscene, Scene *scen } } - pool.wait_work(); + TaskPool::Summary summary; + pool.wait_work(&summary); + VLOG(2) << "Objects BVH build pool statistics:\n" + << summary.full_report(); + foreach(Shader *shader, scene->shaders) shader->need_update_attributes = false; |