Opened 13 years ago

Closed 13 years ago

Last modified 9 months ago

#8602 closed patch

Loading NUT fonts on demand

Reported by: eriktorbjorn Owned by: fingolfin
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Monkey Island 3


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.

Ticket imported from: #1640913. Ticket imported from: patches/707.

Attachments (1)

nut-ondemand.diff (4.3 KB) - added by eriktorbjorn 13 years ago.
Patch against current SVN

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by eriktorbjorn

Attachment: nut-ondemand.diff added

Patch against current SVN

comment:1 Changed 13 years ago by fingolfin

Looks fine to me, feel free to commit it.

comment:2 Changed 13 years ago by eriktorbjorn

Status: newclosed

comment:3 Changed 13 years ago by eriktorbjorn

Thanks for looking. Committed.

comment:4 Changed 9 months ago by digitall

Component: Engine: SCUMM
Game: Monkey Island 3
Note: See TracTickets for help on using tickets.