diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-22 18:41:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-03-22 18:41:37 +0300 |
commit | 18e2a5df1a1d0a279c39f09f00f2c3275748ce60 (patch) | |
tree | e181c410467c23e0102dd3fb45ccb410f9cec48c /source/blender/depsgraph/intern/eval/deg_eval.cc | |
parent | 47acd706fde992e1b4f940145724aae9bf896861 (diff) | |
parent | 69b327d8dcf91cccedf08b9a50c92d5b3922449b (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/depsgraph/intern/eval/deg_eval.cc')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc index a8fa73654a4..f3b45303e35 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval.cc @@ -235,6 +235,7 @@ void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, return; } const bool do_time_debug = ((G.debug & G_DEBUG_DEPSGRAPH_TIME) != 0); + const double start_time = do_time_debug ? PIL_check_seconds_timer() : 0; /* Set time for the current graph evaluation context. */ TimeSourceDepsNode *time_src = graph->find_time_source(); eval_ctx->depsgraph = (::Depsgraph *)graph; @@ -275,6 +276,10 @@ void deg_evaluate_on_refresh(EvaluationContext *eval_ctx, if (need_free_scheduler) { BLI_task_scheduler_free(task_scheduler); } + if (do_time_debug) { + printf("Depsgraph updated in %f seconds.\n", + PIL_check_seconds_timer() - start_time); + } } } // namespace DEG |