From 347410a322c4a356b7111a059ceb89626c8859a5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 3 Mar 2017 10:58:53 +0100 Subject: Depsgraph: Remove workarounds from depsgraph for keeping threads alive This is something what should be done in the task scheduler instead with local thread queues so we handle this in a single place. --- source/blender/depsgraph/intern/eval/deg_eval_flush.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/depsgraph/intern/eval/deg_eval_flush.cc') diff --git a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc index 7c6c25bef0d..e10f86f6e95 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_flush.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_flush.cc @@ -180,6 +180,11 @@ void deg_graph_flush_updates(Main *bmain, Depsgraph *graph) comp_node->done = 1; /* Flush to nodes along links... */ + /* TODO(sergey): This is mainly giving speedup due ot less queue pushes, which + * reduces number of memory allocations. + * + * We should try solve the allocation issue instead of doing crazy things here. + */ if (node->outlinks.size() == 1) { OperationDepsNode *to_node = (OperationDepsNode *)node->outlinks[0]->to; if (to_node->scheduled == false) { -- cgit v1.2.3