Blender Git Loki

Git Commits -> Revision 42cb1e3

Revision 42cb1e3 by Sergey Sharybin (master)
May 27, 2020, 10:07 (GMT)
OpenSubdiv: Optimize faces storage in mesh topology

Avoid per-face pointer and allocation: store everything as continuous
arrays.

Memory footprint for 1.5M faces:

- Theoretical worst case (all vertices and edges have crease) memory
goes down from 114 MiB to 96 MiB (15% improvement).

This case is not currently achievable since Blender does not expose
vertex crease yet.

- Current real life worst case (all edges have crease) memory goes
down from 108 MiB to 90 MiB (17% improvement).

- Best case (no creases at all) memory goes down from 96 MiB to 78 MiB
(19% improvement).

Commit Details:

Full Hash: 42cb1e3a2c4c708df4506b735d29b5841c07d960
Parent Commit: c971731
Lines Changed: +118, -55

4 Modified Paths:

/intern/opensubdiv/internal/topology/mesh_topology.cc (+53, -11) (Diff)
/intern/opensubdiv/internal/topology/mesh_topology.h (+48, -33) (Diff)
/intern/opensubdiv/internal/topology/mesh_topology_test.cc (+13, -10) (Diff)
/intern/opensubdiv/internal/topology/topology_refiner_factory.cc (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021