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
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2020-09-18 13:03:22 +0300
committerSergey Sharybin <sergey@blender.org>2020-09-18 13:03:22 +0300
commit9a5663ff43494b31670eacf7eba41d3cc55fdc1a (patch)
tree4fcf28c81383143c6574d4c800c235d46f9f6969 /intern
parent940ef1a4e8625205e0f10d0c49a2ff74a78b3392 (diff)
Cycles: Add time report for Blender data synchronization
Allows to more easily access time information about how long Cycles did spend synchronizing objects from evaluated depsgraph on Blender side to its own structures. This timer does not include time spent evaluating render depsgraph.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/blender_sync.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/blender/blender_sync.cpp b/intern/cycles/blender/blender_sync.cpp
index b68e1931670..bb2240142b0 100644
--- a/intern/cycles/blender/blender_sync.cpp
+++ b/intern/cycles/blender/blender_sync.cpp
@@ -37,6 +37,7 @@
#include "util/util_debug.h"
#include "util/util_foreach.h"
#include "util/util_hash.h"
+#include "util/util_logging.h"
#include "util/util_opengl.h"
#include "util/util_openimagedenoise.h"
@@ -219,6 +220,8 @@ void BlenderSync::sync_data(BL::RenderSettings &b_render,
int height,
void **python_thread_state)
{
+ scoped_timer timer;
+
BL::ViewLayer b_view_layer = b_depsgraph.view_layer_eval();
sync_view_layer(b_v3d, b_view_layer);
@@ -242,6 +245,8 @@ void BlenderSync::sync_data(BL::RenderSettings &b_render,
shader_map.post_sync(scene, false);
free_data_after_sync(b_depsgraph);
+
+ VLOG(1) << "Total time spent synchronizing data: " << timer.get_time();
}
/* Integrator */