Lazy loading for glyph images into RAM, instead of caching at layout level we will cache only when rendering.
This may affect speed a bit since color glyphs will be loaded twice before caching (with FT_Load_Glyph)
Try to run test application, and hit scale font
- RAM consumption (Accelerated Rendering) **
Before | After |
-------: | ------- |
111.9 | 21.8 |
204.8 | 24.4 |
298.0 | 26.3 |
391.5 | 28.4 |
484.8 | 29.9 |
578.1 | 31.4 |
671.4 | 32.5 |
- RAM consumption (SW Rendering) **
Before | After |
-------: | ------- |
104 | 14.6 |
197 | 17 |
290 | 19.1 |
384 | 21.2 |
477 | 22.8 |
571 | 24.3 |
664 | 25.6 |