From: Allen B. <al...@us...> - 2001-02-02 23:41:47
|
allenb 2001/02/02 15:41:55 PST Modified files: Input/vjKeyboard vjXWinKeyboard.cpp Log: Found a probable performance problem in the xwinkeyboard event handling. The code would keep looping checking for events (and chewing CPU) even when there were no events to be processed. I changed it to make it a little smarter. Now it waits (in it's own thread) until there is an event to process, then it processes all the events it can and then waits for more. This should use less CPU time needlessly checking for events. Revision Changes Path 1.49 +26 -34 juggler/Input/vjKeyboard/vjXWinKeyboard.cpp http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/juggler/Input/vjKeyboard/vjXWinKeyboard.cpp.diff?r1=1.48&r2=1.49&cvsroot=vrjuggler |