Ask Your Question

Revision history [back]

Okay by the sounds of it the processing in your callback is taking too long to run at 30 hz. @ahentrix is correct multiple threads are not being created but you're probably maxing out a cpu core with a single thread.

I'd recommend moving the processing out of your callback function. So the callback simply saves the content of the last message and the a slower timer callback then performs the processing on the most recent data.

Can you describe what processing you're doing on the 3d mouse data? It's possible this could be sped up if you can show us your code.