Geometry Nodes: Use implicit sharing in point/mesh conversion nodes #106917

Closed
Hans Goudey wants to merge 1 commits from HooglyBoogly:points-nodes-sharing into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

1 Commits

Author SHA1 Message Date
Hans Goudey 5df70a41f9 Geometry Nodes: Use implicit sharing in point/mesh conversion nodes
Reduces memory usage and time spent copying data in the "Points to
Vertices" and "Mesh to Points" nodes. An arbitrary speedup can be
observed by just adding more data to the source geometries.
For example, In a simple test I saw a 70x speedup. The sharing in
the "Mesh to Points" node is more limited though, since it can copy
from multiple domains.

A new utility function is added to share a custom data layer.
I'd imagine this being part of a more general "attribute interpolation"
abstraction in the future.
2023-04-13 13:12:43 -04:00