Blender Git Commit Log

Git Commits -> Revision 445d506

Revision 445d506 by Hans Goudey (master)
June 21, 2021, 21:17 (GMT)
Geometry Nodes: Use multithreading for the curve to mesh node

This commit optimizes the node for the case where it works on many
splines by allowing it to generate mesh data from their combinations
in parallel. By itself, this made the node around twice as fast in my
test file with a result of 20 million vertices, around 600ms instead of
1.2s before.

That isn't actually a very good result; it reveals another bottleneck,
a single threaded loop over all face corners in the mesh normal
calculation code. As a simple change that might improve performance
in some situations, this commit moves normal calculation out of this
node, so at least the work isn't wasted if the mesh is changed later
on in the node tree anyway.

Commit Details:

Full Hash: 445d506ac9b59c4eb9de8a475fd89ba908ecbcdf
Parent Commit: b11a463
Lines Changed: +103, -52

1 Modified Path:

/source/blender/nodes/geometry/nodes/ (+103, -52) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021