What would be a reasonable number to increase the cache to?
The glyph cache for the font should hold the number of glyphs you wish to display on screen at anyu given time. For e.g english, you might want capital letters and the digits 0-9, that’s 36 glyphs. The root of 36 is 6, so you want the cache to fit 6x6 cells. Each cell was 400 in height. 6*400 is 2400. Round upwards to nearest power of two, and the texture will be 4k x 4k. You can of make the size different, e.g 4x10 which fits 40 glyphs, and gives you the size 2048x4096
I increased both caches to 100 and now the game crashes when I get the “out of available cache cells!”
The game should’t crash due to this. Please create a ticket with a small repro case project attach, and we can look into it.