Depsgraph: Prioritize evaluation of the new scheduled nodes
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 25 Aug 2016 14:08:41 +0000 (16:08 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 25 Aug 2016 14:08:41 +0000 (16:08 +0200)
The idea here is again to finish objects evaluation as soon as possible.

Seems to be giving another 3% speedup in the barber scenes.

source/blender/depsgraph/intern/eval/deg_eval.cc

index c3fd202d83250791add562b24119bd7212305dd1..f8cca5393e23739414096fe72738703381117135 100644 (file)
@@ -304,7 +304,7 @@ static void schedule_node(TaskPool *pool, Depsgraph *graph, unsigned int layers,
                                                                       deg_task_run_func,
                                                                       node,
                                                                       false,
-                                                                      TASK_PRIORITY_LOW,
+                                                                      TASK_PRIORITY_HIGH,
                                                                       thread_id);
                                }
                        }