Blender Git Loki

Git Commits -> Revision 5a2a2a5

Revision 5a2a2a5 by Campbell Barton (soc-2021-curves)
June 21, 2021, 14:31 (GMT)
Mesh: optimize object mode face tessellation

- Multi-thread BKE_mesh_recalc_looptri.

- Add BKE_mesh_recalc_looptri_with_normals,
this skips having to calculate normals for ngons.

Exact performance depends on number of faces, size of ngons and
available CPU cores.

For high poly meshes the isolated improvement to BKE_mesh_recalc_looptri
in my tests was between 6.7x .. 25.0x, with the largest gains seen in
meshes containing ngons with many sides.

The overall speedup for high poly meshes containing quads and triangles
is only ~20% although ngon heavy meshes can be much faster.

Commit Details:

Full Hash: 5a2a2a59d82dddfc608a7406561b58c841f2b623
Parent Commit: c24535a
Committed By: Dilith Jayakody
Lines Changed: +295, -105

4 Modified Paths:

/source/blender/blenkernel/BKE_mesh.h (+7, -0) (Diff)
/source/blender/blenkernel/intern/mesh_tessellate.c (+265, -99) (Diff)
/source/blender/draw/intern/draw_cache_extract_mesh_render_data.c (+13, -2) (Diff)
/source/blender/render/intern/bake.c (+10, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021