Blender Git Commit Log

Git Commits -> Revision 2ef2f08

Revision 2ef2f08 by Sergey Sharybin (master)
March 13, 2015, 12:39 (GMT)
Add an option to mesh.calc_tessface() to get rid of polygons and loops

The purpose of this change is to add extra possibility to render engines and
export scripts to reduce peak memory footprint during their operation.

This new argument should be used with care since it'll leave mesh in not really
compatible with blender format, but it's ok to be used on temp meshes.

Unfortunately, it's hard to get scene where it'll show huge benefit because
in my tests with cycles peak memory is reached in MEM_printmemlist_stats().

However, in the file with sintel dragon it gives around 1gig of memory benefit
after removing the polys which would allow other heavy to compute stuff such as
hair (or even pointiness calculation) to not be a peak memory usage.

In any case, this change is nice to have IMO, and only means more parts of
scene export code should be optimized memory-wise.

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D1125

Commit Details:

Full Hash: 2ef2f085fb743c12d1cabd71d42dd00334de696b
Parent Commit: 0e18a56
Lines Changed: +25, -5

5 Modified Paths:

/intern/cycles/blender/blender_util.h (+1, -1) (Diff)
/source/blender/editors/include/ED_mesh.h (+1, -1) (Diff)
/source/blender/editors/mesh/mesh_data.c (+12, -1) (Diff)
/source/blender/makesrna/intern/rna_mesh_api.c (+10, -1) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021