Message-ID: <37EF95A7.AA5B28DD@nf.sympatico.ca> From: Michael Bricout 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 !!