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:
parent
33442e0992
commit
274b2dbe5e
@ -61,7 +61,7 @@ class FaceSetFromBoundariesInput final : public bke::MeshFieldInput {
|
|||||||
|
|
||||||
AtomicDisjointSet islands(faces.size());
|
AtomicDisjointSet islands(faces.size());
|
||||||
non_boundary_edges.foreach_index(
|
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());
|
Array<int> output(faces.size());
|
||||||
islands.calc_reduced_ids(output);
|
islands.calc_reduced_ids(output);
|
||||||
|
Loading…
Reference in New Issue
Block a user