Depsgraph: Don't leave active thread if there's only one children node
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 08:39:38 +0000 (10:39 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 10 May 2016 08:39:38 +0000 (10:39 +0200)
commit12a20b78d3d9b0f3d5ef9cc6a81ae2619c82db88
tree067630bb6e5d6c9ad269bf110def6bec24e09f6d
parent7efa34d078336bb366ac5b099e56a2896176f599
Depsgraph: Don't leave active thread if there's only one children node

This reduces stress on the task scheduler and avoids some unwanted overhead
caused by all the threading business in the cases when there's only one
children node. We try to immediately switch to it's evaluation now, keeping
active thread up and running.

This bumps FPS from 58 to 64 on the blenrig test file from jpbouza.
source/blender/depsgraph/intern/depsgraph_eval.cc