Date: Tue, 8 Jul 1997 11:59:12 +0200 (MET DST) From: Jan Hubicka To: Nate Eldredge cc: djgpp AT delorie DOT com Subject: Re: exact timing and allegro timers In-Reply-To: <199707041814.LAA21998@adit.ap.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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!