Viewport Text Drawing: replace single allocs with a memarena
authorCampbell Barton <ideasman42@gmail.com>
Thu, 17 Apr 2014 05:14:07 +0000 (15:14 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 17 Apr 2014 06:04:28 +0000 (16:04 +1000)
commit3e3efae7e9420817a6fe35545d97568a69e2ce7c
treeb6702eea72f629be453795e317fbcc22c3692535
parent1b9db9911d9cbcb81d58277084b9c4c5daf84e8a
Viewport Text Drawing: replace single allocs with a memarena

- pass label strlen since in many cases its already known.
- use single linked list for cached text drawing.
- add BLI_link_utils.h for single linked list macros.

own tests give approx 22% overall speedup.
source/blender/blenlib/BLI_link_utils.h [new file with mode: 0644]
source/blender/editors/include/UI_view2d.h
source/blender/editors/interface/view2d.c
source/blender/editors/space_nla/nla_draw.c
source/blender/editors/space_sequencer/sequencer_draw.c
source/blender/editors/space_view3d/drawanimviz.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_intern.h