make EDBM_index_arrays's stay in memory, blender was allocating an array and filling...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 12 Dec 2012 06:53:39 +0000 (06:53 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 12 Dec 2012 06:53:39 +0000 (06:53 +0000)
commit44b634bcb1363fa600e0f9300dcaa76402b47738
treec5fe9bfe9fb8496f67c6fad4447ed225decdf20d
parent3759c10e5c832672920daf80b0f1018604cfb4b4
make EDBM_index_arrays's stay in memory, blender was allocating an array and filling it for verts/edges/faces on every redraw.

this may introduce bugs which I didn't catch, but they are very easy to identify in a debug build which has asserts to ensure the arrays are valid before use.

in my own test drawing ~98,304 quads - this gave an overall ~16% drawing speedup.
18 files changed:
source/blender/blenkernel/BKE_tessmesh.h
source/blender/editors/include/ED_mesh.h
source/blender/editors/mesh/editface.c
source/blender/editors/mesh/editmesh_add.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/mesh/editmesh_rip.c
source/blender/editors/mesh/editmesh_select.c
source/blender/editors/mesh/editmesh_slide.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/mesh/editmesh_utils.c
source/blender/editors/mesh/mesh_navmesh.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_iterators.c
source/blender/editors/space_view3d/view3d_snap.c
source/blender/editors/transform/transform_snap.c
source/blender/editors/uvedit/uvedit_ops.c
source/blender/editors/uvedit/uvedit_smart_stitch.c
source/blender/editors/uvedit/uvedit_unwrap_ops.c