takkaO / OpenFontRender

TTF font render support library for microcomputer.
Other
105 stars 16 forks source link

If no cache is set, it defaults to CACHE_SIZE_NO_LIMIT which will consume all available (heap) memory #17

Closed Ramon-Leeuwe closed 1 year ago

Ramon-Leeuwe commented 1 year ago

If no cache is set, it defaults to CACHE_SIZE_NO_LIMIT which will consume all available (heap) memory. It might be better to set the default to a lower limit and add a note in the doc's to explain how to increase the cache if needed.

takkaO commented 1 year ago

Hi @Ramon-Leeuwe Thank you for using this library 😊 and sorry for late reply.

I think it is a good idea. I will be imported into the next version.

Ramon-Leeuwe commented 1 year ago

Thanks for fixing this issue. :thumbsup: I really like your project, but struggled a bit with memory management (not enough memory). That's why I raised this issue.