diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-10 13:05:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-10 13:05:09 +0300 |
commit | 288bbee5b1c802ac1a218e7f5fa5452305b86f92 (patch) | |
tree | ee4cf531f041084666f4fb8fd82766754e5232cc /source/blender/depsgraph/intern/depsgraph_eval.cc | |
parent | ce2c15deafcb8e2d2b5a8f2b46572fb24c439ce9 (diff) |
Depsgraph: Comment evaluation priority out for now
It uses some additional compute power and the evaluation priority is
not even used.
This brings fps 88.2 with blenrig_for_debugging.blend on this desktop.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph_eval.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph_eval.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc index 8031f46bdc5..52a153b6f2a 100644 --- a/source/blender/depsgraph/intern/depsgraph_eval.cc +++ b/source/blender/depsgraph/intern/depsgraph_eval.cc @@ -56,6 +56,9 @@ extern "C" { static bool use_legacy_depsgraph = true; #endif +/* Unfinished and unused, and takes quite some pre-processing time. */ +#undef USE_EVAL_PRIORITY + bool DEG_depsgraph_use_legacy(void) { #ifdef DISABLE_NEW_DEPSGRAPH @@ -274,6 +277,7 @@ static void calculate_pending_parents(Depsgraph *graph, int layers) } } +#ifdef USE_EVAL_PRIORITY static void calculate_eval_priority(OperationDepsNode *node) { if (node->done) { @@ -302,6 +306,7 @@ static void calculate_eval_priority(OperationDepsNode *node) node->eval_priority = 0.0f; } } +#endif /* Schedule a node if it needs evaluation. * dec_parents: Decrement pending parents count, true when child nodes are scheduled @@ -422,6 +427,7 @@ void DEG_evaluate_on_refresh_ex(EvaluationContext *eval_ctx, } /* Calculate priority for operation nodes. */ +#ifdef USE_EVAL_PRIORITY for (Depsgraph::OperationNodes::const_iterator it = graph->operations.begin(); it != graph->operations.end(); ++it) @@ -429,6 +435,7 @@ void DEG_evaluate_on_refresh_ex(EvaluationContext *eval_ctx, OperationDepsNode *node = *it; calculate_eval_priority(node); } +#endif DepsgraphDebug::eval_begin(eval_ctx); |