Page Index Toggle Pages: 1 Send TopicPrint
Why a large memory requirement for HD/Falcon games (Read 1179 times)
Heavy Stylus
Playtester
***
Offline


D-BUG Fanboi

Posts: 345
Location: Exeter, UK
Joined: 27.02.07
Gender: Male
Why a large memory requirement for HD/Falcon games
04.12.07 at 11:25:10
Print Post  
Not that I mind with my 4MB STE, but a friend was asking why games like 'Escape...Robot Monsters' require 4MB of RAM to run from HD.  I didn't have a proper answer (other than the fact that the game is depacted into RAM?), and was wondering if one of you DBug guys could explain how the whole HD/Falcon patching system works?

I assume (probably wrongly) that the data is uncompressed and loaded into RAM, and then the Atari requires yet more RAM to actually run the game...
« Last Edit: 04.12.07 at 11:25:32 by Heavy Stylus »  

http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
Back to top
WWW  
IP Logged
 
ggn
D-Bug member
Reboot Member
*****
Offline


D-Bug debugger

Posts: 1465
Location: Somewhere in Greece
Joined: 22.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #1 - 04.12.07 at 12:12:41
Print Post  
First things first: why doesn't your pal sign up here and post his question himself? Wink

Secondly, Escape from the planet of the robot monsters does work with 2mb memory, so we'll correct that in the page, thanks for bringing that up to our attention Smiley. Like you, all of our machines have 4MB of RAM and above, so we can't test them in anything else except STEEM. The best thing you can do is try running the game in STEEM with 1 or 2mb and see if it works Wink. If it does, we'd be more than happy to change our info page.

As for your question: generally the patched games roughly as much memory the game's file size plus 0.5mb (or 1mb in some cases) extra. The data is in memory packed and is unpacked when needed.

P.S. I did a whoopsie with Badlands Sad, it should be possible to work with 1mb ram! I'll try to fix that when I get back home.
  
Back to top
 
IP Logged
 
Shw
D-Bug member
*****
Offline


D-Bug member

Posts: 367
Location: Kingston Upon Hull
Joined: 22.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #2 - 04.12.07 at 15:49:34
Print Post  
Yes, you'll find quite a number of our patches do run with 2mb machines.

In fact making the game Falcon compatible doesn't effect the amount of memory the game needs. It's making the game hard-drive installable that eats away ram. As basically we load the entire games data into memory before the game runs. As the majority of games over write the systems memory which deals with file i/o.

Shw
  
Back to top
 
IP Logged
 
Heavy Stylus
Playtester
***
Offline


D-BUG Fanboi

Posts: 345
Location: Exeter, UK
Joined: 27.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #3 - 04.12.07 at 16:06:44
Print Post  
Thanks for the comprehensive answer guys Smiley
  

http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
Back to top
WWW  
IP Logged
 
ggn
D-Bug member
Reboot Member
*****
Offline


D-Bug debugger

Posts: 1465
Location: Somewhere in Greece
Joined: 22.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #4 - 04.12.07 at 18:04:42
Print Post  
Just updated the page and the zip, tested under steem in 1mb, works Smiley
  
Back to top
 
IP Logged
 
CJ
D-Bug member
Reboot Member
*****
Offline


D-Bug Founder

Posts: 1205
Location: State of Confusion
Joined: 22.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #5 - 04.12.07 at 22:57:48
Print Post  
Hi

There are currently two ways of HD patching a title:

[1] The conventional way 

  As mentioned above - load all the data into the upper part of memory, patch the loader to copy it from there instead of going to disk, and let the game run in the lower part of memory - so for these you will requires 512k+size of all data (packed)+say 2k for patching routines.   This is the way most things are done to fix for HD.  The down side to this is that ALL I/O has to be killed, which means no high score saves or savepoints.

[2] Universal Loading System [ULS] conversion

  This is our stubloader code that is basically our version of WHDLoad on the Amiga (But works in a completely different way!)  The Atari's O/S is given its own "virtual environment" to run in and is swapped in and out every time an I/O request is needed.  These patches will all need at least 1Mb ram to provide the O/S the environment it needs to run in, alongside the memory that the game will use.

   ULS is currently *not* my prefered method for patching as it eats memory and causes slower loading than RAMdisking titles. However it is the only way to have a true HD-save game or high score save version, so it still has its uses.

  It is currently under development to give it full functionality on the Falcon using the PMMU to provide the game title with the virtual RAM, instead of the O/S running virtually, which will make it a lot more useful and stable - but thats a long while off and will require motivation Wink

  We are also playing with a 3rd option which would allow any .msa disk image to be mounted and booted directly from an Atari HD - even titles doing direct disk access work using this method.  As we have stated many times previously, this is still a long way from being released, but it has been lab tested Wink  Some working titles for this project are:  "ImpossiLoad", "NotImgRunner" and "ItJustWorks"

  Just for information, version 0.0001 of U.L.S. was called TOSoff (Because you can load with TOS disabled) - but Showaddywaddy made me rename it.  I still don't know why....

  Hope this helps answer your shy friends questions Smiley
  

"With only one button, even drooling fucktards like Kizza can play our game!"
Back to top
 
IP Logged
 
Heavy Stylus
Playtester
***
Offline


D-BUG Fanboi

Posts: 345
Location: Exeter, UK
Joined: 27.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #6 - 05.12.07 at 15:01:03
Print Post  
I like the sound of "ImpossiLoad".  It really sounds like a great utility.  Keep up the sterling work lads.

  

http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
Back to top
WWW  
IP Logged
 
robert2098
RoMzkiddiEz
*
Offline


Atari Lover

Posts: 46
Location: The Netherlands
Joined: 02.06.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #7 - 05.09.08 at 10:22:11
Print Post  
CJ wrote on 04.12.07 at 22:57:48:
 We are also playing with a 3rd option which would allow any .msa disk image to be mounted and booted directly from an Atari HD - even titles doing direct disk access work using this method.  As we have stated many times previously, this is still a long way from being released, but it has been lab tested Wink  Some working titles for this project are:  "ImpossiLoad", "NotImgRunner" and "ItJustWorks"


Wow, this intrigues me. I can understand you can intercept OS IO calls and redirect them to a virtual mounted floppy, but how do you prevent that programs (usually games and demos) executed from the mounted floppy, overwrite the memory area where the virtual floppy driver is living. And more difficult how do you intercept direct calls to the floppy controller registers of programs (usually demo disks) that skip the OS for doing IO.
But it would be the ultimate Atari ST utility now my floppies are rotting away. Keeping them as disk images on HD would be great. I hope it gets released sometime.

Regards,

Robert
  

Better 8 hours at work than no sleep at all.
Back to top
WWW  
IP Logged
 
Heavy Stylus
Playtester
***
Offline


D-BUG Fanboi

Posts: 345
Location: Exeter, UK
Joined: 27.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #8 - 05.09.08 at 14:01:03
Print Post  
I *guess* that this method will require at least 2MB to use (but more likely 4MB) so that the disk image can be stored in the otherwise unused upper memory and the game/program can use the regular lower memory (the first MB+).  But I'm probably way off the mark and oversimplifying things a bit!
  

http://www.rgcd.co.uk
The Essential Discmag for Retro Gamers!

http://www.myspace.com/heavystylus
Usual myspace crap.

http://tinyurl.com/heavystylus
Facebook
Back to top
WWW  
IP Logged
 
CJ
D-Bug member
Reboot Member
*****
Offline


D-Bug Founder

Posts: 1205
Location: State of Confusion
Joined: 22.02.07
Gender: Male
Re: Why a large memory requirement for HD/Falcon g
Reply #9 - 06.09.08 at 05:25:34
Print Post  
Quote:
......but how do you prevent that programs (usually games and demos) executed from the mounted floppy, overwrite the memory area where the virtual floppy driver is living. And more difficult how do you intercept direct calls to the floppy controller registers of programs (usually demo disks) that skip the OS for doing IO.


With a lot of cunning...  despite what others might tell you, it can be done Smiley  Not saying its easy tho!
  

"With only one button, even drooling fucktards like Kizza can play our game!"
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
 
  « Board Index ‹ Board  ^Top