Blender Git Commit Log

Git Commits -> Revision f1941ee

Revision f1941ee by Sergey Sharybin (opensubdiv_compare)
May 26, 2020, 09:08 (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: f1941eef96bd9cccd1de9cf9e3e5321bde97081f
Parent Commit: 02c353d
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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021