From: moreau AT alpes-net DOT fr (nico) Newsgroups: comp.os.msdos.djgpp Subject: Re: exact timing and allegro timers Date: Sat, 05 Jul 1997 07:19:57 GMT Organization: NetSat Inc. Lines: 30 Message-ID: <33bdf372.309421@news.internetsat.com> References: <199707041814 DOT LAA21998 AT adit DOT ap DOT net> Reply-To: moreau AT alpes-net DOT fr NNTP-Posting-Host: grenoble09.alpes-net.fr To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 4 Jul 1997 18:14:35 GMT, 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? > I too have had a few wories about Allegro timer routines, the fact is that Allegro interrupt handler is quite big. I think it would be a good idea to have different versions of the handler when building the library You could then choose your handler, depending on what fucntions you really need: mouse, midi,fli,gui,windows compatibility .... I coded a handler a few months ago with Watcom + DOS/4GW and it wasn't slowing down my computer (P90) when running at 1000Hz Another idea for Allegro timers would be to increase maximum rate say 2000Hz so you could get more precise timming. Nico e-mail: moreau AT alpes-net DOT fr Close windows OPENDos