[ scummvm-Patches-1640913 ] Loading NUT fonts on demand

SourceForge.net noreply at sourceforge.net
Sun Jan 21 18:58:39 CET 2007


Patches item #1640913, was opened at 2007-01-21 18:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1640913&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Torbjörn Andersson (eriktorbjorn)
Assigned to: Max Horn (fingolfin)
Summary: Loading NUT fonts on demand

Initial Comment:
Here's another way to possibly save a bit of memory. Currently, we pre-load all the NUT fonts. This happens both in the SCUMM engine, and in the SMUSH player. (The SMUSH player loads them as pixmaps, though, so they're not quite equal.)

But I imagine that most of the time, the game only uses one or two of the fonts, not (in the case of CoMI) all five. It's also possible that some are used only by the game and some only by the SMUSH movies, I don't know.

This patch delays the loading of the font until it's actually requested.

INSANE still pre-loads stuff. I haven't looked much at that.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418822&aid=1640913&group_id=37116




More information about the Scummvm-tracker mailing list