This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11567 - Smarter memory allocation for skin fonts
Attached to Project:
Rockbox
Opened by Fred Bauer (freddyb) - Tuesday, 24 August 2010, 00:25 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 25 August 2010, 16:12 GMT+2
Opened by Fred Bauer (freddyb) - Tuesday, 24 August 2010, 00:25 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 25 August 2010, 16:12 GMT+2
|
DetailsThese patches improve the allocation of font memory in the skin engine. Allocating memory in proportion to the glyph size is more efficient and if done right can reduce the disk reads while loading skin_fonts. There are two variations:
"Skin_fonts_extra_tag" adds a field to the load user font tag that explicitly specifies how many glyphs to allocate memory for. This allows paring down fonts that are just used for number display and allows forcing more allocation for international users who use more glyphs. %Fl(3,16-GNU-Unifont.fnt) would become %Fl(3,16-GNU-Unifont.fnt,100). Supplying a dash allocates 256. "Skin_fonts_smart_alloc" is a less ambitious patch that allocates space for 256 glyphs without changing the tag specification. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Wednesday, 25 August 2010, 16:12 GMT+2
Reason for closing: Accepted
Additional comments about closing: in r27882, thanks
Wednesday, 25 August 2010, 16:12 GMT+2
Reason for closing: Accepted
Additional comments about closing: in r27882, thanks
I'll commit this tonight if I remember and noone beats me to it
is SKIN_FONT_SIZE still used anywhere? if not please remove it with tthis patch :)