FS#11168 - Default font for cabbie loads incredibly slowly
Opened by Torne Wuff (torne) - Friday, 02 April 2010, 16:01 GMT
Last edited by Torne Wuff (torne) - Sunday, 05 June 2011, 10:54 GMT
The version of cabbiev2 for players with 320x240 or 240x320 screens (ipod video, gigabeat, etc) uses 15-Adobe-Helvetica as the font. This font is much larger than all the other versions of Helvetica we ship, presumably because it covers more of Unicode. The result is that the font is over 60000 bytes, which is the limit for the "fast" font loading method where the font is loaded all at once, and the font gets loaded in tiny pieces according to the glyph cache.
On most players this seems to be 4-5 times slower, taking 250ms or longer to execute font_load compared to 70ms for a font which fits in the buffer. This is bad enough; however, on ipodvideo 5.5G, with the 1024-byte sectors, loading 15-Adobe-Helvetica takes 6 seconds - 30 times slower than loading a small font. The sector emulation is making the piecemeal loading a *far* worse case.
Useful though it is to have the default theme use a font with reasonably good unicode coverage, I think these kinds of load times are just hopeless and provide a bad experience for users who haven't chosen their own theme. The choice of font for cabbie on *other* screen sizes is a much smaller file, also, which suggests that this wasn't a conscious decision to use a font with high coverage, it just happened by coincidence.
I recommend that we either strip glyphs from 15-Adobe-Helvetica until it fits in the buffer, or change Cabbie to use a different font instead. Fixing the font caching to not be so slow would be nice, but a lot more work ;)
Sunday, 05 June 2011, 10:54 GMT
Reason for closing: Works For Me
Additional comments about closing: We can't reproduce this.