www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/20/06:31:48

Date: Mon, 20 Jul 1998 13:29:53 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: jako <kay DOT kollmann AT kiel DOT netsurf DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: PMode Newbie question
In-Reply-To: <01bdb3bc$e8498dc0$0100007f@default>
Message-ID: <Pine.SUN.3.91.980720132553.3576B-100000@is>
MIME-Version: 1.0

On 20 Jul 1998, jako wrote:

> I'm programming a game with djgpp+allegro and
> test it on my PC with 32 MB ram. How can I
> make sure that it runs on a PC with 16 MB, too ?

You should only care about it if you disable virtual memory.  If not, a 
16MB machine can have the same amount of available memory as the one with 
32MB.  The game will run slower once it starts paging, but it *will* run.

> "__dpmi_get_free_memory_information()" gives me
> many numbers but which are really important ?

If you care about the free physical memory, use the function
_go32_dpmi_remaining_physical_memory.  It returns only one number ;-).

- Raw text -


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