[Bf-blender-cvs] [c114919] master: Cycles: Log time spent on the BVH build
Sergey Sharybin
noreply at git.blender.org
Mon Nov 24 14:51:36 CET 2014
Commit: c1149198b5983f13bfd9bc21263b0e278e07da94
Author: Sergey Sharybin
Date: Mon Nov 24 15:08:13 2014 +0500
Branches: master
https://developer.blender.org/rBc1149198b5983f13bfd9bc21263b0e278e07da94
Cycles: Log time spent on the BVH build
===================================================================
M intern/cycles/bvh/bvh_build.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index eb4cca9..06549de 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -28,6 +28,7 @@
#include "util_debug.h"
#include "util_foreach.h"
+#include "util_logging.h"
#include "util_progress.h"
#include "util_time.h"
@@ -223,7 +224,8 @@ BVHNode* BVHBuild::run()
spatial_right_bounds.resize(max(root.size(), (int)BVHParams::NUM_SPATIAL_BINS) - 1);
/* init progress updates */
- progress_start_time = time_dt();
+ double build_start_time;
+ build_start_time = progress_start_time = time_dt();
progress_count = 0;
progress_total = references.size();
progress_original_total = progress_total;
@@ -258,6 +260,10 @@ BVHNode* BVHBuild::run()
}
}
+ VLOG(1) << "BVH built in "
+ << time_dt() - build_start_time
+ << " seconds.";
+
return rootnode;
}
More information about the Bf-blender-cvs
mailing list