Blender Git Loki
Git Commits -> Revision da860d5
Revision da860d5 by Campbell Barton (soc-2021-porting-modifiers-to-nodes-decimate, soc-2021-porting-modifiers-to-nodes_all) July 30, 2021, 14:56 (GMT) |
Edit Mesh: multi-thread auto-smooth sharp-edge calculation Merge the sharp edge tagging into bm_mesh_loops_calc_normals, this has the advantage that edge tagging can be performed as part of walking over each vertices edges - instead of tagging in a separate loop. Even though this will tag edges twice (once for each vertex), the computation isn't heavy as it's only calculating a dot-product between the two face users to compare the angle. This change combined with 4ba06ad0a8cdec66d9a9cb06f982736d46c40f4c makes BM_loops_calc_normal_vcos around 5.68x faster, with an overall speedup over 2.6x when transforming a high poly mesh. (tested on a system with 32 cores). Reviewed By: mont29 Ref D11970 |
Commit Details:
Full Hash: da860d5d1b332a4bd1dbdc8c0f24ce4d1f9a2c10
Parent Commit: 426ac09
Committed By: Fabian Schempp
Lines Changed: +122, -19
1 Modified Path:
/source/blender/bmesh/intern/bmesh_mesh_normals.c (+122, -19) (Diff)