PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

PocketSCUMM needs some disk caching implemented

Hi there,

I've just downloaded and tried out PocketSCUMM and very impressive it is too! :)

However ... I've got DOTT and Sam'n'Max installed on a 5Gb PCMCIA hard disk in conjunction with the Ipaq H5450 and it seems PocketSCUMM could do with some tweaking in terms of accessing the files.
It might be a good idea to implement some sort of read ahead cache, where as much of the game data is held in RAM as possible, this will reduce the amount of power that a PCMCIA hard disk and Microdrive will be consuming as they won't be spinning up all the time. At the moment PocketSCUMM seems to access the disk constantly which means the battery life suffers. The DiVX player PocketMVP uses a caching method and it works very well.

Just an idea to improve an otherwise great program :D

Mark
Sounds like a cool idea. Except PocketMVP and PocketTV play video files which are linear. So it's easy to determine what to cache ahead of time. I wonder how Arisme could implement caching for this emulation project. I'm not good at emulation code, so I dunno if you can "read ahead" in a similar fashion for such cases.

For console emulators, the ROM(s) could just be cached into RAM I suppose. For SCUMM, would that mean you'd have to cache all of the necessary game files? That could be huge. I'm just thinking aloud here.

JJB
I don't think the coding required to develop some sort of caching to reduce PCMCIA hard disk access would be worth the effort. For one thing, the amount of RAM required might be prohibitive, but more importantly, the PC card hard disks are likely going to give way to memory cards before too long. Prices on 1gig memory cards are dropping and before long we'll have 2-5g cards at reasonable prices.
mmh right ... as far a I know ScummVM reads data in a progressive way (ie for each room) - it may be possible to optimize the sound file accesses, but that's all (and of course it won't help for games where the music is streamed such as Loom CD, Monkey Island 1 CD or the recent games (Full Throttle, The Dig))