Re: gdk events - cunsumes much CPU time



Quoted by a squadron of trained droids
For `Andreas Volz <andreas brachttal net>' 
On Friday, 27 June 2003 (18:29):


Where is the problem? Is perhaps gdk_event_get() not the correct
function for this problem?


        It seems to be the correct function, however you need to wait some msec before
getting the next event. So, before the last bracket, you can add a call to
usleep (see the man page for more information) -- one or two msec should be
sufficient.

-- 

 Leandro Pereira              (oO)           <leandro linuxmag com br>
                              /||\                  www.mindcrisis.tk

  Give a man a fish, and he'll eat for a day. Give a man a bible, and it'll
   probably take him a week or two to eat it all. -- anonymous at usenet.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]