Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-07-30 15:36:59 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-07-30 15:36:59 +0300
commitb9c257019fe256af6c2978b94b4948d18a6cd4eb (patch)
tree8b34299ca2bc847885d84c62c065d823e2d192f8 /source/blender/blenkernel/intern/subsurf_ccg.c
parentae7db53744845897154c9d2b54390850d3615093 (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/blenkernel/intern/subsurf_ccg.c')
0 files changed, 0 insertions, 0 deletions