diff options
-rw-r--r-- | intern/cycles/blender/blender_sync.cpp | 5 |
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 */ |