Re: [Tuxnes-devel] A fue minor patches too 0.75.
Brought to you by:
tmmm
From: Jason D. S. <jd...@us...> - 2004-07-28 21:30:46
|
Mike Mestnik wrote: > That's correct, I just used usleep for finding when the event might end. > This way where not constintaly looking for the event, just once every time > frame. > > While forward porting this too CVS HEAD I saw that non of the working > renderes still had this code. This could be the clue I needed to get GGI > working, since it still has this code. Well, you could replace it with a select(NULL, NULL, NULL, &tv), where tv holds the polling time. The poll time doesn't have to correspond to a frame, though. Using select _might_ give better results (lower lag) since it will exit if there's an interrupt. But in most cases it probably doesn't matter. Looking at the internals of a function like gtk_main() may show a better way to do this. Most GUI libraries have code like this already. jason |