diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-14 15:56:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-14 15:56:02 +0300 |
commit | 6bef2559047461794eb3ff27de15f4caf5ddcf1e (patch) | |
tree | 1085e6a277341ab46f31e4677c6aa175cb74a45d /source/blender/editors/render | |
parent | 8083527f90d1556f576cf102d4143749677c45e0 (diff) |
BMesh: remove unit-length edge-vector cache from normal calculation
Bypass stored edge-vectors for ~16% performance gains.
While this increases unit-length edge-vector calculations by around ~4x
the overhead of a parallel loop over all edges makes it worthwhile.
Note that caching edge-vectors per-vertex performs better and may be
worth investigating further, although in my tests this increases code
complexity with barley measurable benefits over not using cache at all.
Details about performance and possible optimizations are noted in
bm_vert_calc_normals_impl.
Diffstat (limited to 'source/blender/editors/render')
0 files changed, 0 insertions, 0 deletions