You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application with a lot of strings at different font sizes. All the text is rendered using the same font.
As I walk through my menu system I see memory being allocated as more glyphs are cached by FreeType's cache manager. Eventually all the available heap is allocated and the device resets.
I can work around this by unloading/loading the font every time I update text on the screen but it's not a great solution. Rendering speed is not noticeably worse which makes me wonder if the cache is required at all?
Is there a better way to flush free type's caches or reduce/control its memory usage??
The text was updated successfully, but these errors were encountered:
Currently there is no limit on the cache size, but it will be set to a minimum in the next update.
The develop branch already has this fix in place.
Please wait a little longer for the master branch to be updated.
You can also use the following API to change the cache size.
I have an application with a lot of strings at different font sizes. All the text is rendered using the same font.
As I walk through my menu system I see memory being allocated as more glyphs are cached by FreeType's cache manager. Eventually all the available heap is allocated and the device resets.
I can work around this by unloading/loading the font every time I update text on the screen but it's not a great solution. Rendering speed is not noticeably worse which makes me wonder if the cache is required at all?
Is there a better way to flush free type's caches or reduce/control its memory usage??
The text was updated successfully, but these errors were encountered: