[Bf-blender-cvs] [5823c1e] depsgraph_cleanup: Depsgraph: Comment out debugger for now

Sergey Sharybin noreply at git.blender.org
Thu May 26 10:02:32 CEST 2016


Commit: 5823c1e577288d32257eb620bd090fa1a2408f98
Author: Sergey Sharybin
Date:   Wed May 25 16:42:47 2016 +0200
Branches: depsgraph_cleanup
https://developer.blender.org/rB5823c1e577288d32257eb620bd090fa1a2408f98

Depsgraph: Comment out debugger for now

It was querying for the time on each of the node updates,
which is 100s of times per armature. Better not to do it
for the official builds.

===================================================================

M	source/blender/depsgraph/intern/eval/deg_eval.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc
index f985309..7d640cf 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval.cc
@@ -56,6 +56,11 @@ extern "C" {
 /* Unfinished and unused, and takes quite some pre-processing time. */
 #undef USE_EVAL_PRIORITY
 
+/* Use integrated debugger to keep track how much each of the nodes was
+ * evaluating.
+ */
+#undef USE_DEBUGGER
+
 namespace DEG {
 
 /* ********************** */
@@ -102,17 +107,21 @@ static void deg_task_run_func(TaskPool *pool,
 		 */
 		if (node->evaluate) {
 			/* Take note of current time. */
+#ifdef USE_DEBUGGER
 			double start_time = PIL_check_seconds_timer();
 			DepsgraphDebug::task_started(state->graph, node);
+#endif
 
 			/* Perform operation. */
 			node->evaluate(state->eval_ctx);
 
 			/* Note how long this took. */
+#ifdef USE_DEBUGGER
 			double end_time = PIL_check_seconds_timer();
 			DepsgraphDebug::task_completed(state->graph,
 			                               node,
 			                               end_time - start_time);
+#endif
 		}
 
 		/* If there's only one outgoing link we try to immediately switch to




More information about the Bf-blender-cvs mailing list