[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: minimum timer event value?
- Subject: Re: minimum timer event value?
- From: "Mark Hadfield" <m.hadfield(at)niwa.cri.nz>
- Date: Mon, 14 Aug 2000 12:48:30 +1200
- Cache-Post-Path: firstname.lastname@example.org
- Newsgroups: comp.lang.idl-pvwave
- Organization: NIWA
- References: <3994377C.F8716DCC@u.washington.edu> <MPG.email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:20820
"David Fanning" <firstname.lastname@example.org> wrote in message
> Rick Towler (email@example.com) writes:
> > I can't seem to generate events faster than maybe 2-3 per second
> > regardless of the value I set TIMER to. I certainly can slow it down
> > with values of 1,2,5 etc. but values of .3, .1, .01 all seem to create
> > events of the same delay (around 2-3 per second). I thought that this
> > may be processor dependent but the program seems to act the same on a
> > 300 MHz laptop and Dual 500 MHz desktop.
> But I do think the slowest of these variables is actually
> generating the event and putting it on the queue. 2-3
> per second sounds about right to me.
It sounds pretty slow to me! XINTERANIMATE uses widget timer events and it
runs along at 30 per second if the images are small. I regularly run my own
object graphics animator code at approx. 15 per second.
Re the minimum delay, I expect (but haven't checked) that on an Intel PC it
is equal to the granularity of the system timer, i.e. 55 ms.
National Institute for Water and Atmospheric Research
PO Box 14-901, Wellington, New Zealand