Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Reduce the size of the sheets created for fonts. #14376
Memory reduction efforts to tackle #12494.
I can confirm @RoosterDragon's description above.
Here are before and after dumps of the font cache after the following steps in the RA mod:
When starting the game and hovering over player names and tooltips (which use additional colours) it fills up some more but does not overflow. Note also that i'm running with HiDPI fonts, so for most people the texture usage will be a factor of 4 less.
In TD I can fairly easily overflow the cache onto a second sheet, but I think its reasonable to assume that people with HiDPI displays also have sufficient GPU power that breaking batches on text rendering is not going to ruin everything. The memory benefit clearly outweighs the render overheads.