diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-22 00:17:02 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-22 00:17:02 +0300 |
commit | 445d506ac9b59c4eb9de8a475fd89ba908ecbcdf (patch) | |
tree | afc44f2cf5976d6e8400cb40324963d0052b7532 /source/blender/windowmanager/intern/wm_window.c | |
parent | b11a463e4fcd98f2fff6e05a03e97e71b93b8274 (diff) |
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.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_window.c')
0 files changed, 0 insertions, 0 deletions