Geometry Nodes: Avoid index lookup from index mask #109174

Merged
Hans Goudey merged 9 commits from mod_moder/blender:avoid_mask_lookup into main 2023-06-23 19:20:30 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit d2ab277e2d - Show all commits

View File

@ -1256,8 +1256,8 @@ static void extrude_individual_mesh_faces(
using T = decltype(dummy);
MutableSpan<T> data = attribute.span.typed<T>();
MutableSpan<T> connect_data = data.slice(connect_edge_range);
poly_selection.foreach_index_optimized<int>(
GrainSize(512), [&](const int index, const int i_selection) {
poly_selection.foreach_index(
mod_moder marked this conversation as resolved Outdated

How much of a speedup do you get here from using optimized?

How much of a speedup do you get here from using `optimized`?

Haven't done any tests yet. But here, most likely, I simply overlooked the nested loop.

Haven't done any tests yet. But here, most likely, I simply overlooked the nested loop.
GrainSize(512), [&](const int64_t index, const int64_t i_selection) {
const IndexRange poly = polys[index];
const IndexRange extrude_range = group_per_face[i_selection];