some speedup for drawing mesh in texture mode.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 23 Sep 2011 18:29:45 +0000 (18:29 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 23 Sep 2011 18:29:45 +0000 (18:29 +0000)
commita189b71a28d3eddc6b85948ab1063be0a032cde4
tree6b2d55b13122fa22ab6d4016a43399353fef6d9f
parent120895fd240590f428fd68dda4bb4bd5c844cfc3
some speedup for drawing mesh in texture mode.
- only pass if the mesh has vertex colors to drawParams() rather then the mcol its self, this saves a lookup on the color.
- drawing textures in editmode with no vertex colors would still lookup vertex colors on each face, instead cache this info for all faces.
source/blender/blenkernel/BKE_DerivedMesh.h
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/cdderivedmesh.c
source/blender/blenkernel/intern/subsurf_ccg.c
source/blender/editors/space_view3d/drawmesh.c