Cheeseness wrote:It sounds interesting. If you're comfortable, throw it up on the forum here. Others might be interested too (it could be tidied and make its way into a branch as an extra input abstraction layer.
Haven't figured out how to attach a file to this post, so below is URL where you can get a tarball with the patched files. Sorry, but I haven't had a chance to create diffs, so the tarball contains 5 source files with alterations. That being said, the alterations should be all noted inside the source and there is also a README in the tarball providing additional information.
If you do get a chance to look at the source, I would love to hear why do you think the UDP packets start falling behind if their frequency supersedes the speed of the main loop even though the single packet read command inside the main loop should be capable of grabbing literally dozens of packets. I ended up including an extra UDP packet read at the end to compensate for this, but isn't UDP meant to simply read whatever is on the socket at the time and not worry about the rest?
At any rate, here's the code:
http://ico.bukvic.net/Misc/neverball_ne
ack.tar.gz
NB: The patches go against the 1.4.0 source (or more precisely 1.4.0-6 Ubuntu 8.10 package).
Hope this helps!
Best wishes,
Ico
Last edited by ico (2009-02-07 16:13:11)