www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/08/03:54:12

Date: Tue, 8 Jul 1997 11:59:12 +0200 (MET DST)
From: Jan Hubicka <hubicka AT ta DOT jcu DOT cz>
To: Nate Eldredge <eldredge AT ap DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: exact timing and allegro timers
In-Reply-To: <199707041814.LAA21998@adit.ap.net>
Message-ID: <Pine.LNX.3.91.970708115818.6044B-100000@tabor.ta.jcu.cz>
MIME-Version: 1.0

On Fri, 4 Jul 1997, Nate Eldredge wrote:

> You wrote
> >I need to measure intervals exactly (to aprox 1/400 of second) and I also
> >need to use allegro with mouse(that requires timers)
> >So I did timer (using allegro) at 100hz and measuerd intervals to 1/100 sec
> >but increasing timer 400Hz efectivly degrades speed of computer.
> >So this way us unusable anymore.
> >
> >Do you have any ideas how to solve this please?
> 
> Sorry, I think that's the facts of life. If your timer routine is going to
> go that often, it *is* going to eat up significant CPU time. Only thing I
> can think of is to make your timer handling routine more efficient.
Only what handling routine does in increasing counter.
BTW Linux does support high resolution time. So it is possible.
Only timer modes in allegro causes problems


Honxs
> TANSTAAFL
> 
>  
> 
> Nate Eldredge
> eldredge AT ap DOT net
> 
> 
> 
> 

------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!

- Raw text -


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