diff options
author | Hans Goudey <h.goudey@me.com> | 2021-05-03 16:00:09 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-05-03 16:00:09 +0300 |
commit | 1d7ee50fef71a2baaa2ebcfb8409b5eb33d1bc23 (patch) | |
tree | b29a2a175b9055498821fb84217aedf10446c51e /source/blender/compositor/intern | |
parent | 2b46606af139171283c5a1ff0df0ee39fb78112e (diff) |
Geometry Nodes: Parallelize attribute nodes
This commit significantly speeds up many of the attribute nodes when
multiple threads are available in linear situations when parallelism
cannot be achieved elsewhere.
See the differential for a table of timing comparisons tested on a
Ryzen 3700x. For an attribute with 4 million elements, the nodes were
about 3 to 9 times faster.
The changes are not exhaustive, other nodes could still be parallelized
in the future. Also, it would be possible to further optimize the grain
size in `parallel_for`, but I'd rather make sure it isn't too small.
I tested some different values, but also relied on intuition--
increasing grain size for less complex operations and vice versa.
Differential Revision: https://developer.blender.org/D11139
Diffstat (limited to 'source/blender/compositor/intern')
0 files changed, 0 insertions, 0 deletions