delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/20/20:18:47

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: allegro under linux
Date: Sat, 16 Aug 1997 15:30:27 +0100
Organization: None
Distribution: world
Message-ID: <2+wurDADmb9zEwom@talula.demon.co.uk>
References: <01bca114$7ddec2e0$3965a8c0 AT stefan DOT schimanski>
<sCWoEGAK935zEwpl AT talula DOT demon DOT co DOT uk>
<m2hgcq4uhl DOT fsf AT foobar DOT i-have-a-misconfigured-system-so-shoot-me>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 27
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Allensworth writes:
>I noticed the lack of actual code, especially the various /* do some stuff */'s
>I've been thinking of hacking in what I needed, 

I haven't touched the linux port for a long time (there is plenty of
stuff to keep me busy with the DOS version!) but Tom Novelli
(tcn AT spectra DOT net) has recently started working on it. Drop him a line if
you want to help out...

>what's a sane minimum timer delay? I remember seeing something about 10 
>ms in the docs, yet in the dos timer code the absolute min it lets 
>through seems to be a bit less than 1 ms.

Under DOS the only real limitation on timer accuracy is the latency of
processing interrupts (the 1 ms delay is just to prevent two interrupts
firing at almost the same time). Under Windows it drops to a 5 ms tick
resolution, though, and I've yet to see that cause any major problems,
so I think 10 ms would also be alright...

>My idea was to hack in the support with setitimer and sigaction...

I think that will be the best method.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.

- Raw text -


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