Geometry Nodes: Increase parallelism in Geometry Proximity node

The default grain size of 10000 for multi function execution was much
too large for the fairly expensive BVH traversal. In the file from
#143455, reducing te grain size to 512 increase the playback FPS from
8 to 20.
This commit is contained in:
Hans Goudey
2025-08-03 11:18:59 -04:00
parent 1229fba5c9
commit 74a2211f95

View File

@@ -247,6 +247,13 @@ class ProximityFunction : public mf::MultiFunction {
}
});
}
ExecutionHints get_execution_hints() const override
{
ExecutionHints hints;
hints.min_grain_size = 512;
return hints;
}
};
static void node_geo_exec(GeoNodeExecParams params)