Archived from groups: comp.sys.ibm.pc.games.action (
More info?)
On Sat, 23 Apr 2005 18:37:31 +1000, Nostromo
<nostromo@spamfree.net.au> wrote:
>Thus spake Knight37 <knight37m@email.com>, 23 Apr 2005 03:25:44 GMT, Anno
>Domini:
>
>>Blabbus Blabbibicus <blabbus@talk.com> once tried to test me with:
>>
>>> I know its probably impossible and fraught with lots of programming
>>> difficulties, but I was wondering if there might be software out there
>>> which works similiarly to the 'savestate' feature found in many
>>> emulation programs? This would be great for titles that don't have
>>> save features or severly crippled ones such as the one I'm playing
>>> now.
>>>
>>> I'm ready to tear my head off after playing through some of the levels
>>> in Hitman Code 47 for the 10th time!! :-O
>>
>>It's not really possible to do this except in the cases of emulation. In
>>emulation, the real OS is devoting a fixed amount of memory to emulate the
>>memory of the device that it's emulating. But in the case of a program
>>running under the "real" OS, you'd have to save ALL of the memory ALL of
>>the time, so lets say you have a 1gb RAM, and you want to save state, you'd
>>have to save 1gb to disc when you do save state. But that's only part of
>>the problem. Because you'd also have to save the state of the temporary
>>files that the program has open, since those can change while the game is
>>running. Not only that, but by saving the state, you're actually CHANGING
>>the state, since you're doing this in the same memory space using the same
>>cpu that the game is running under. In an emulated mode, the state of the
>>emulated cpu can be saved, since it's really just software.
>
>You forgot the win swap file AND the registers, stacks & God knows what else
>Intel stick in there these days...
Gosh, well that kinda bums that idea into the ground. :-( It still
seems as though it'd be possible via some sort of software registers.
Windows already pretty much does this when it goes into Hibernation
mode doesn't it? Granted I haven't tried going into Hibernation mode
while something as resource intensive as a game is running. Hmm...
I don't think you'd have to save *all* of the contents of the main
swap file would you?