Blender Git Loki

Git Commits -> Revision 6312f82

Revision 6312f82 by Jacques Lucke (temp-ui-tweaks)
September 22, 2021, 13:54 (GMT)
Geometry Nodes: multi threaded field evaluation

This adds a new `ParallelMultiFunction` which wraps another multi-function
and evaluates it with multiple threads. The speeds up field evaluation
quite a bit (the effect is most noticeable when the number of evaluations
and the field is large).

There are still other single-threaded performance bottlenecks in field
evaluation that will need to be solved separately. Most notably here
is the process of copying the computed data into the position attribute
in the Set Position node.

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

Commit Details:

Full Hash: 6312f82324dd59e23037d8756b9e72dc418e12f4
Parent Commit: 1f8eab5
Committed By: Pablo Vazquez
Lines Changed: +335, -2

3 Added Paths:

/source/blender/blenlib/intern/index_mask.cc (+57, -0) (View)
/source/blender/functions/FN_multi_function_parallel.hh (+39, -0) (View)
/source/blender/functions/intern/multi_function_parallel.cc (+95, -0) (View)

7 Modified Paths:

/source/blender/blenlib/BLI_index_mask.hh (+3, -0) (Diff)
/source/blender/blenlib/CMakeLists.txt (+1, -0) (Diff)
/source/blender/blenlib/tests/BLI_index_mask_test.cc (+24, -0) (Diff)
/source/blender/functions/CMakeLists.txt (+18, -0) (Diff)
/source/blender/functions/FN_generic_virtual_array.hh (+46, -0) (Diff)
/source/blender/functions/intern/field.cc (+9, -2) (Diff)
/source/blender/functions/intern/generic_virtual_array.cc (+43, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021