From: "Ben Davis" Newsgroups: comp.games.development.programming.misc,comp.os.msdos.djgpp Subject: A choking start for DPMI Date: Thu, 7 Oct 1999 22:08:29 +0100 Organization: Customer of Planet Online Lines: 16 Message-ID: <7tj2lg$n15$1@news7.svr.pol.co.uk> NNTP-Posting-Host: modem-4.slamdunk.dialup.pol.co.uk X-Trace: news7.svr.pol.co.uk 939331056 23589 62.136.207.4 (7 Oct 1999 21:17:36 GMT) NNTP-Posting-Date: 7 Oct 1999 21:17:36 GMT X-Complaints-To: abuse AT theplanet DOT net Keywords: dpmi,dos,hard,disk,harddisk,hd,hdd,msdos,ms-dos,swapping,protected X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I've written a rather hyperactive game using DJGPP and Allegro, in DOS. Naturally it uses DPMI, which involves disk-swapping. The trouble is, when the program first starts, it freezes as the computer accesses the hard-disk. Having already started playing some digitised music, it causes the sound to crackle a lot. I would like to know if there is a way of causing all disk-swapping to happen before the game displays any graphics or makes any sound. If I need to specify all the variables which must be in physical memory, then I can do it. However, being new to DPMI and especially the function names in DJGPP, I need some help. Any ideas? Ben Davis