Subject: Re: O_ASYNC on ttys
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 07/10/2001 09:53:34
>> I was getting just about 240Hz wakeups in userland.
> I bet what was happening was that the system was lightly loaded, and
> that your process was the only one really running.

Yes.

> So the processor was going from running your process to idle & backa
> again.

It should never have gone to idle; the program doesn't do anything
blocking during routine operation.  The game's main loop expects to be
interrupted (by signals, in both the current paradigms) at 240Hz.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B