Can confirm this still happens, just repro on 4.2 main and MacOS.
Just to be sure: what is the expected result of this operation?
to process the mesh ignoring the edit mode hidden faces?
If needed we can start from scratch in a fresh PR if a worth research is found.
Closing this PR since the attempts are a dead end. No point spending more time in research since the whole approach of calculating a whole mesh field does not scale well anyways even with…
fixed
Ok based on @Sergey modified code I've added safeguard for updating the dists array and still comes ahead in performance to the serial implementation. @mod_moder please take a look and if we…
As for which commit may have caused the regression I can't tell exactly since trying to go back that far in time gives me lots of libraries and dependency errors compiling Blender to effectively…
Performed several traces on Blender. The first stroke indeed takes longer (detected as hangs in red in XCode Instruments Profiler -> Time Profile) The second stroke is a bit faster in this case…