Re: [AD] sub millisecond interupts in DOS..how?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> i would like to get a timer tick  approx 312 microseconds, but the allegro
> timers seem to only go as low as 1 millisecond.
> how would i modify the allegro src to obtain  the  32 ticks per 10ms (
> approx 312 microseconds ) .

Everything is in src/dos/dtimer.c.  In particular, you might want to try to 
get rid of

   /* fudge factor to prevent interrupts coming too close to each other */
   if (new_delay < 1024)
      timer_delay = 1024;
   else
      timer_delay = new_delay;

in var_timer_handler and see what happens.

-- 
Eric Botcazou




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/