delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/27/09:31:56

Message-ID: <37EF95A7.AA5B28DD@nf.sympatico.ca>
From: Michael Bricout <michael DOT bricout AT nf DOT sympatico DOT ca>
X-Mailer: Mozilla 4.05 [en]C-SYMPA (Win16; I)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Game with rsxntdj : frames skipped in Windows
Lines: 15
Date: Mon, 27 Sep 1999 11:39:47 GMT
NNTP-Posting-Host: 209.128.1.3
X-Trace: news20.bellglobal.com 938432387 209.128.1.3 (Mon, 27 Sep 1999 07:39:47 EDT)
NNTP-Posting-Date: Mon, 27 Sep 1999 07:39:47 EDT
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have a game in beta version for Windows 9x, compiled with DJGPP +
RSXNTDj, using WinAllegro 3.9. It's a fast action game with horizontal
scrolling, in 640x400.

I use page flipping for the refresh. The frame indicator (simple palette
switching for color 0) indicates a refresh time of about 1/8 frame.

Problem : my game skips one frame every 10 or 15 seconds, or more
depending on what is running in the background in Windows. I think the
reason is that a vsync is not detected because my program is not active
at that particular moment (the game waits for the signal, but apparently
doesn't know if it has already occured).

How can I give a higher priority to my game, or make sure that it will
be active when the vsync occurs ? Any help appreciated !!

- Raw text -


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