Blender Git Commit Log

Git Commits -> Revision f9691ba

Revision f9691ba by Clément Foucault (master)
March 31, 2018, 17:32 (GMT)
BLF: Perf: Add a kerning cache table for ascii chars.

This adds less than a megabyte of mem usage.
FT_Get_Kerning was the 2nd hotspot when profilling. This commit completly
remove this cost.

One concern though: I don't know if the kerning data is constant for every
sizes but it seems to be the case. I tested different fonts at different
dpi scalling and saw no differences.

Commit Details:

Full Hash: f9691bae840a136ff0f55e8a99b42dd10f0fa8d8
Parent Commit: 0ef3887
Lines Changed: +128, -7

5 Modified Paths:

/source/blender/blenfont/intern/blf.c (+3, -1) (Diff)
/source/blender/blenfont/intern/blf_font.c (+46, -6) (Diff)
/source/blender/blenfont/intern/blf_glyph.c (+55, -0) (Diff)
/source/blender/blenfont/intern/blf_internal.h (+4, -0) (Diff)
/source/blender/blenfont/intern/blf_internal_types.h (+20, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021