[Bf-blender-cvs] [7471f09] master: Depsgraph: Use HIGH priority for scheduled tasks
Sergey Sharybin
noreply at git.blender.org
Mon Dec 5 16:38:58 CET 2016
Commit: 7471f09f2bb20fed33c57ca0ad53990be3eb48fd
Author: Sergey Sharybin
Date: Mon Dec 5 16:31:34 2016 +0100
Branches: master
https://developer.blender.org/rB7471f09f2bb20fed33c57ca0ad53990be3eb48fd
Depsgraph: Use HIGH priority for scheduled tasks
This kind of keeps threads "warmer" and should in theory give better
cache coherency bringing some %% of speedup. It was already tested
few months ago and it gave few % speedup in barber shop, but was
reverted due to some bone popping. The popping is now fixed so it
should be fine to use new scheduling policy.
===================================================================
M source/blender/depsgraph/intern/eval/deg_eval.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/eval/deg_eval.cc b/source/blender/depsgraph/intern/eval/deg_eval.cc
index e926f83..065f656 100644
--- a/source/blender/depsgraph/intern/eval/deg_eval.cc
+++ b/source/blender/depsgraph/intern/eval/deg_eval.cc
@@ -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);
}
}
More information about the Bf-blender-cvs
mailing list