Minor speedups for 3D view text drawing ~10-15% improved frame-rate with particle...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 30 Oct 2010 23:02:38 +0000 (23:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 30 Oct 2010 23:02:38 +0000 (23:02 +0000)
commitb349f7c99d770673cfd27b3ce7de311db33d6b3f
treebd3115583fc0edd04b3dba8fdbeeab789b159130
parent97d2ca8a3309e3b74990430672e74b1239f76636
Minor speedups for 3D view text drawing ~10-15% improved frame-rate with particle display.
- ascii text drawing functions, slightly faster since they dont have to do hash lookups & utf8 conversions for each char.
- used ascii drawing functions for the view3d's number display.
- each text item was using fixed 128 chars, now only allocate the string length needed.
source/blender/blenfont/BLF_api.h
source/blender/blenfont/intern/blf.c
source/blender/blenfont/intern/blf_font.c
source/blender/blenfont/intern/blf_internal.h
source/blender/blenfont/intern/blf_internal_types.h
source/blender/editors/space_view3d/drawanimviz.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_intern.h