-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Both render_text() and text_dimensions() used to compute glyphs for all the characters in the given text. Since text_dimensions() is used by render_text() early on this would do the work twice almost exactly in a row. Speed things up by computing the glyphs early in render_text() and also providing the precomputed data to text_dimensions().
- Loading branch information
Showing
1 changed file
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters