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
This commit is contained in:
Iliya Katueshenock
2023-11-21 23:40:14 +01:00
committed by Hans Goudey
parent 33442e0992
commit 274b2dbe5e

View File

@@ -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<int> output(faces.size());
islands.calc_reduced_ids(output);