Hacker News new | past | comments | ask | show | jobs | submit login

hard to imagine the code used to render the bitmaps would be smaller and hence less often lead to cache misses than the bitmaps.



acdha is referring to the cache of rendered bitmaps, not the CPU cache.

Font renderers that cache keep a cache of bitmaps for glyphs that it has previously rendered. Since you need a separate bitmap for each Unicode codepoint or ligature × font size × subpixel offset, the cache could potentially get huge.

So, they cap the number of bitmaps that get cached and evict some. But when you're animating a font's size or dealing with non-Latin languages, you're churning through so many unique bitmaps that you end up not getting much value from the cache.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: