delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/05/13:59:22

Date: Thu, 5 Nov 1998 13:59:07 -0500 (EST)
Message-Id: <199811051859.NAA21543@indy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <DfUySGA0KfQ2EwRf@dunvegan1.demon.co.uk> (message from Paul
Richards on Thu, 5 Nov 1998 18:47:16 +0000)
Subject: Re: Allegro vsync stuff
Reply-To: djgpp AT delorie DOT com

At 300 fps, what you could do is check the vsync bit for each frame,
and only redraw if the bit is set, else if 10 frames go by and you
don't see the bit, redraw anyway.  Or, use the vsync interrupt to set
a flag that says "redraw this time" then reset the flag when you
redraw.  If you recalculate and the flag isn't set, just skip the
redraw and recalculate again.

- Raw text -


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