delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/26/05:37:33

Message-ID: <19990926062046.2910.rocketmail@web1405.mail.yahoo.com>
Date: Sat, 25 Sep 1999 23:20:46 -0700 (PDT)
From: Prashant TR <prashant_news AT yahoo DOT com>
Subject: Re: Memory hoarding
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com


> When my game starts up I am thinking of grabbing
> all the available
> RAM I can but one thing I need to is what is the
> best way of doing this?
> 

I've tried this myself but it hangs because of some
problem with CWSDPMI (I think). The version of CWSDPMI
that quake uses doesn't give this problem. Quake
itself does the same thing. I grabs all memory at
once.

What I think you could do is just split it up into
maybe 1MB chunks and get 64MB or whatever your program
wants. Just make sure you don't use all memory. Leave
aside a little so that it doesn't crash. Hope this
helps.

Bye.

- Prashant TR
http://www.members.tripod.com/prashant_tr
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019