1cb2d991f99374976cb9ee8afa86fb32b44daf5f
In setups where only very few elements are processed at once, the lazy-threading hints that come from `parallel_for` are not triggered. However, often it can still be worth to use multi-threading in such cases. Therefore, we need to find additional places where the lazy-threading hints are sent. There are many possibilities and we probably have to add them step by step as we find .blend files that show missing multi-threading. In this patch I choose to send the hint at the beginning of evaluating a repeat zone if it has 10 or more iterations. The exact number here is just a guess and could be fine tuned over time if necessary. A slightly modified version of the file in #134230 speeds up from ~1100ms to ~100ms with this change. The exact speedup changes quite a bit each run, but is always between 5 and 20x, so it's quite noticable. Pull Request: https://projects.blender.org/blender/blender/pulls/134408
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
