diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-30 15:36:59 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-30 15:36:59 +0300 |
commit | b9c257019fe256af6c2978b94b4948d18a6cd4eb (patch) | |
tree | 8b34299ca2bc847885d84c62c065d823e2d192f8 /source/blender/modifiers/intern/MOD_meshdeform.c | |
parent | ae7db53744845897154c9d2b54390850d3615093 (diff) |
BLI_task: tweak default chunk size for `BLI_task_parallel_range()`.
Previously we were setting it to 1 (aka no 'chunking'), to follow
previous behavior. However, this is far from optimal, especially with
CPUs that can have tens of threads nowadays.
Now taking an heuristic approach (inspired from the one already existing
for `BLI_task_parallel_listbase()`, which tries to guesstimate best
chunk sizes based on several factors (amount of threads/parallel tasks,
total number of items, ...).
Think this is a reasonable base ground, more optimization here would of
course be possible.
Note that code that was already explicitely settings some value here
won't be affected at all by that change.
Diffstat (limited to 'source/blender/modifiers/intern/MOD_meshdeform.c')
0 files changed, 0 insertions, 0 deletions