Opened 18 years ago

Closed 18 years ago

Last modified 6 years ago

#8602 closed patch

Loading NUT fonts on demand

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

Description

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 18 years ago.
Patch against current SVN

Download all attachments as: .zip

Change History (5)

by eriktorbjorn, 18 years ago

Attachment: nut-ondemand.diff added

Patch against current SVN

comment:1 by fingolfin, 18 years ago

Looks fine to me, feel free to commit it.

comment:2 by eriktorbjorn, 18 years ago

Status: newclosed

comment:3 by eriktorbjorn, 18 years ago

Thanks for looking. Committed.

comment:4 by digitall, 6 years ago

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