nanogui: Problem With GrGetNextEventTimeout()?


Previous by date: 13 Nov 2006 18:26:22 +0000 Re: Cannot initialise mouse, dsil8780.mail.usyd.edu.au
Next by date: 13 Nov 2006 18:26:22 +0000 GrMoveWindow and NanoWM, Reiser, Markus
Previous in thread: 13 Nov 2006 18:26:22 +0000 Re: Problem With GrGetNextEventTimeout()?, Gil Glass
Next in thread: 13 Nov 2006 18:26:22 +0000 Re: Problem With GrGetNextEventTimeout()?, Gil Glass

Subject: Re: [nanogui] Problem With GrGetNextEventTimeout()?
From: "Greg Haerr" ####@####.####
Date: 13 Nov 2006 18:26:22 +0000
Message-Id: <09e501c70751$3a3a6780$0300a8c0@RDP>

>  Now, I'm calling GrGetNextEventTimeout() with
a value of 1000 ms BUT THERE APPEARS TO BE ANOTHER TIMER WITH A TIMEOUT
OF BETWEEN 49 OR 50 ms (and sometimes 1 ms and sometimes 7 ms and
sometimes others) THAT CONSISTENTLY TRUMPS MY 1000 ms TIMEOUT TIMER.
Linux's select() function is then called with this much shorter timeout
and, even though there's no event, a GR_EVENT_TYPE_TIMEOUT event is not
generated.


Hmmm...  Make sure VTSWITCH=N, since the 
drivers/vtswitch.c code calls GdAddTimer to deal
with changing consoles when drawing.  You might
also grep for GdAddTimer and find any other
code that might create a timer.

For debugging, perhaps add some printf() code in 
the addtimer routine so you'll know what timers are
being created.

Keep me posted, we'll get this fixed

Regards,

Greg
,

Previous by date: 13 Nov 2006 18:26:22 +0000 Re: Cannot initialise mouse, dsil8780.mail.usyd.edu.au
Next by date: 13 Nov 2006 18:26:22 +0000 GrMoveWindow and NanoWM, Reiser, Markus
Previous in thread: 13 Nov 2006 18:26:22 +0000 Re: Problem With GrGetNextEventTimeout()?, Gil Glass
Next in thread: 13 Nov 2006 18:26:22 +0000 Re: Problem With GrGetNextEventTimeout()?, Gil Glass


Powered by ezmlm-browse 0.20.