delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/24/04:47:06

From: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
Message-Id: <199704240849.KAA21592@gilberto.physik.rwth-aachen.de>
Subject: Re: timer interrupt - sample code anyone?
In-Reply-To: <1.5.4.32.19970424055459.00692f70@ubeclu.unibe.ch> from Roger Noss at "Apr 24, 97 07:54:59 am"
To: noss AT pupk DOT unibe DOT ch (Roger Noss)
Date: Thu, 24 Apr 1997 10:49:24 +0200 (MET DST)
Cc: tgrand AT canvaslink DOT com, djgpp AT delorie DOT com
Reply-To: Christoph Kukulies <kuku AT gilberto DOT physik DOT rwth-aachen DOT de>
MIME-Version: 1.0

> At 02:57 PM 4/23/97 -0400, you wrote:
> 
> >Ok, I have a system of measuring the frame rate in my game that I
> >think is pretty foolproof.  I have a variable called frame_count that
> >is incremented at the end of every frame.  I then have an ISR which
> >is called once per second.  In this ISR, I copy frame_count into
> >a variable called fps, then I set frame_count back to 0.
> >
> >	Tom Grandgent
> 
> And how do you detect the end of every frame?  From VGA specs I found on the
> Web I read that bit 3 of 0x3CA is set during vertical retrace but I have not
> been able to capture it.  Am I barking up the wrong tree?  Is there a

I think he is talking about frames that his program writes, not the
VGA vsync framerate. Although buffer switching with the video framerate
would be optimal, I think. Or am *I* now off tagret? ;)


> function in djgpp or Allegro that does this with less effort?
> 
> Roger Noss
> 
> 

--
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de

- Raw text -


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