Blender Git Commit Log
Git Commits -> Revision fb60fb0
Revision fb60fb0 by Bastien Montagne (master) October 3, 2018, 14:24 (GMT) |
Improvements to internals blf_font's `blf_font_width_to_strlen()`/`to_rstrlen()` `to_strlen` just benefits from using pre-computed kerning table for ascii chars (gives about 30% speed improvements). `to_rstrlen` was re-written and heavily simplified, basically using same logic as `to_strlen`, and `BLI_str_find_prev_char_utf8()` to loop backward in the string, instead of looping forwards the whole string, storing each gliph's width in temp array, and looping backward on that temp array to find final string matching expected width. Gives about 70% speed improvements! And both functions can now share their core logic. |
Commit Details:
Full Hash: fb60fb055d680a037a7808aeb3304c34ff0c06f7
Parent Commit: 89c30ff
Lines Changed: +70, -88