diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-08-21 03:48:42 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-08-21 03:48:42 +0300 |
commit | 0d7aab2375e6bb06e89dad851550b283a1ff805c (patch) | |
tree | 566247fb9c7a688ed62fefd1ac24f869c0f6f215 /source/blender/blenfont/intern/blf.c | |
parent | b6a1bf757d9f0675f0fb5f21a72ff4ee31f8d6d9 (diff) |
Refactor: BLF Kerning Cache After Use
Optimization of font kerning by only caching kerning values after a
pair is encountered. Also saves unscaled values so they don't have to
be rebuilt between font size changes.
See D12274 for more details and speed comparison.
Differential Revision: https://developer.blender.org/D12274
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf.c')
-rw-r--r-- | source/blender/blenfont/intern/blf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 9168e7aa19c..2f9eb0753ac 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -108,7 +108,6 @@ void BLF_cache_clear(void) FontBLF *font = global_font[i]; if (font) { blf_glyph_cache_clear(font); - blf_kerning_cache_clear(font); } } } |