[Bf-blender-cvs] [0e44cf5d786] blender2.8: Cleanup: Disable some of the extra debug prints that were slowing things down

Joshua Leung noreply at git.blender.org
Thu Aug 23 07:11:19 CEST 2018


Commit: 0e44cf5d786a72efd9f721b6e2ffc2adf4379bb3
Author: Joshua Leung
Date:   Thu Aug 23 14:41:36 2018 +1200
Branches: blender2.8
https://developer.blender.org/rB0e44cf5d786a72efd9f721b6e2ffc2adf4379bb3

Cleanup: Disable some of the extra debug prints that were slowing things down

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

M	source/blender/depsgraph/intern/depsgraph_query_filter.cc

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

diff --git a/source/blender/depsgraph/intern/depsgraph_query_filter.cc b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
index 5614804078d..4038f0cb135 100644
--- a/source/blender/depsgraph/intern/depsgraph_query_filter.cc
+++ b/source/blender/depsgraph/intern/depsgraph_query_filter.cc
@@ -128,12 +128,12 @@ bool deg_filter_free_idnode(Depsgraph *graph, IDDepsNode *id_node,
 	else {
 		const ID_Type id_type = GS(id_node->id_orig->name);
 		if (filter(id_type)) {
-			printf("  id_type (T) = %d ");
+			//printf("  id_type (T) = %d ");
 			id_node->destroy();
 			return true;
 		}
 		else {
-			printf("  id_type (F) = %d ");
+			//printf("  id_type (F) = %d ");
 			return false;
 		}
 	}
@@ -158,14 +158,14 @@ void deg_filter_clear_ids_conditional(
 		
 		if (deg_filter_free_idnode(graph, id_node, filter)) {
 			/* Node data got destroyed. Remove from collections, and free */
-			printf("  culling %s\n", id->name);
+			//printf("  culling %s\n", id->name);
 			BLI_ghash_remove(graph->id_hash, id, NULL, NULL);
 			it = graph->id_nodes.erase(it);
 			OBJECT_GUARDED_DELETE(id_node, IDDepsNode);
 		}
 		else {
 			/* Node wasn't freed. Increment iterator */
-			printf("  skipping %s\n", id->name);
+			//printf("  skipping %s\n", id->name);
 			++it;
 		}
 	}
@@ -266,6 +266,7 @@ Depsgraph *DEG_graph_filter(const Depsgraph *graph_src, Main *bmain, DEG_FilterQ
 	retained_ids = NULL;
 	
 	/* Debug - Are the desired targets still in there? */
+#if 0
 	printf("Filtered Graph Sanity Check - Do targets exist?:\n");
 	LISTBASE_FOREACH(DEG_FilterTarget *, target, &query->targets) {
 		printf("   %s -> %d\n", target->id->name, BLI_ghash_haskey(deg_graph_new->id_hash, target->id));
@@ -275,6 +276,7 @@ Depsgraph *DEG_graph_filter(const Depsgraph *graph_src, Main *bmain, DEG_FilterQ
 	foreach (DEG::IDDepsNode *id_node, deg_graph_new->id_nodes) {
 		printf("  %d: %s\n", id_node_idx++, id_node->id_orig->name);
 	}
+#endif
 	
 	/* Print Stats */
 	// XXX: Hide behind debug flags



More information about the Bf-blender-cvs mailing list