From 274b2dbe5eb8a76f9702a06bf565c917f3ca3197 Mon Sep 17 00:00:00 2001 From: Iliya Katueshenock Date: Tue, 21 Nov 2023 23:40:14 +0100 Subject: [PATCH] Geometry Nodes: Parallel Edges to Face Groups This loop might be 7x faster (not whole node). All other code is already parallel, not sure why this was disabled. Potentially, this was missed after some cleanup. Pull Request: https://projects.blender.org/blender/blender/pulls/115246 --- .../nodes/geometry/nodes/node_geo_edges_to_face_groups.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/nodes/geometry/nodes/node_geo_edges_to_face_groups.cc b/source/blender/nodes/geometry/nodes/node_geo_edges_to_face_groups.cc index 861a733a747..d482d35b2fd 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_edges_to_face_groups.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_edges_to_face_groups.cc @@ -61,7 +61,7 @@ class FaceSetFromBoundariesInput final : public bke::MeshFieldInput { AtomicDisjointSet islands(faces.size()); non_boundary_edges.foreach_index( - [&](const int edge) { join_indices(islands, edge_to_face_map[edge]); }); + GrainSize(2048), [&](const int edge) { join_indices(islands, edge_to_face_map[edge]); }); Array output(faces.size()); islands.calc_reduced_ids(output);