Blender Git Loki

Git Commits -> Revision 513f566

Revision 513f566 by Campbell Barton (master)
June 20, 2021, 04:39 (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: 513f566b40a5bde4d89797aecf7c0ad3e4d1a20b
Parent Commit: b5e5fbc
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