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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2018-08-23 05:41:36 +0300
committerJoshua Leung <aligorith@gmail.com>2018-08-23 08:07:38 +0300
commit0e44cf5d786a72efd9f721b6e2ffc2adf4379bb3 (patch)
treee66df873ebe21186edead400e6aa8e7554558b8d /source/blender/depsgraph/intern/depsgraph_query_filter.cc
parente01a9c5eeeaa61a63103c4eb63af2b752306871c (diff)
Cleanup: Disable some of the extra debug prints that were slowing things down
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_query_filter.cc')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_query_filter.cc10
1 files changed, 6 insertions, 4 deletions
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