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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-08-26 15:04:03 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-08-26 15:05:24 +0300
commit1ada3231ecf4a16c14ceedf46ff10d0478929e23 (patch)
treea87c68eaaddf880afa9fc95eec6a5665299084a2 /source/blender/depsgraph
parent72b24d9c6c24152b28570f1a8d106726948c6b3d (diff)
Depsgraph: Report number of objects to which update as flished
This is an easiest way in the new depsgraph to get an idea how much objects were handled on update.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/eval/deg_eval_flush.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
index a7418ac2c11..7c6c25bef0d 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc
@@ -127,6 +127,7 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph)
}
GSET_FOREACH_END();
+ int num_flushed_objects = 0;
while (!queue.empty()) {
OperationDepsNode *node = queue.front();
queue.pop_front();
@@ -149,6 +150,9 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph)
Object *object = NULL;
if (GS(id->name) == ID_OB) {
object = (Object *)id;
+ if(id_node->done == 0) {
+ ++num_flushed_objects;
+ }
}
foreach (OperationDepsNode *op, comp_node->operations) {
op->flag |= DEPSOP_FLAG_NEEDS_UPDATE;
@@ -198,6 +202,7 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph)
}
}
}
+ DEG_DEBUG_PRINTF("Update flushed to %d objects\n", num_flushed_objects);
}
static void graph_clear_func(void *data_v, int i)