Blender Git Commit Log

Git Commits -> Revision 0ac41de

Revision 0ac41de by Germano Cavalcante (master)
January 4, 2020, 11:36 (GMT)
BLI_bvhtree_overlap does not work multithreaded

`BLI_task_parallel_range` counts the number of tasks depending on the
number of items.

In the case of `BLI_bvhtree_overlap` the number of items is always
between 2 and 16, which makes it always run in single thread.

So, set the maximum number of items per thread to 1.

In my tests the cloth collision system (which calls that function)
went from 0.80fps to 0.88fps.

Differential Revision: https://developer.blender.org/D6523

Commit Details:

Full Hash: 0ac41dea7e21fb5c9388f8b72b8c6b6dfb005046
Parent Commit: 8314e20
Lines Changed: +1, -0

1 Modified Path:

/source/blender/blenlib/intern/BLI_kdopbvh.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021