Part of #118145. Multithread the loop over all grid vertices, replace the PBVH vertex iterator macro, and avoid subtractingt the limit positions in the first loop, since we do that later anyway.
Part of #118145. Multithread the loop over all grid vertices, replace the PBVH vertex iterator macro, and avoid subtractingt the limit positions in the first loop, since we do that later anyway.