From f105d0c83f04a3594cb20d818aa15413e4b08446 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sat, 4 Oct 2025 13:40:24 +0200 Subject: [PATCH] Functions: avoid triggering multi-threading with too few tasks I found this to cause small slow-downs. --- source/blender/functions/intern/lazy_function_graph_executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/functions/intern/lazy_function_graph_executor.cc b/source/blender/functions/intern/lazy_function_graph_executor.cc index 8105278e823..ac0bad9a7d6 100644 --- a/source/blender/functions/intern/lazy_function_graph_executor.cc +++ b/source/blender/functions/intern/lazy_function_graph_executor.cc @@ -435,7 +435,7 @@ class Executor { reinterpret_cast(buffer + self_.init_buffer_info_.node_states_array_offset), nodes.size()}; - threading::parallel_for(nodes.index_range(), 256, [&](const IndexRange range) { + threading::parallel_for(nodes.index_range(), 1024, [&](const IndexRange range) { for (const int i : range) { const Node &node = *nodes[i]; char *memory = buffer + self_.init_buffer_info_.node_states_offsets[i];