[Qt-interest] MouseMove response time resolution
"Alexander Carôt"
alexander_carot at gmx.net
Tue Nov 30 07:39:25 CET 2010
Hi, thanks for swift response !
> Are you sure your thread is really executed every 1.3ms?
> This is almost 1KHz, I doubt that your OS can schedule your periodic
> thread at that frequency, unless you're using special real-time stuff...
Actually, it's my soundcard callback thread, which behaves like that.
> Why you don't simply print a timestamp with the mouse position in your
> mouseMouveEvent() handler? If you're afraid that it will add extra
> delay to print the messages, then you can communicate with your
> display thread using QWaitCondition and a FIFO buffer. This way you
> won't have to use the polling method and won't be annoyed by your OS
> scheduling resolution.
At least in the final application I may not block the soundcard thread in any form and case. At least in that state I need to figure if I can get a better time resolution. The timestamp idea totally makes sense. I will figure and get back once I have an answer.
All the best
-- A l e x
--
http://www.carot.de
http://www.triologue.de
Email : Alexander at Carot.de
Tel.: +49 (0)177 5719797
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl
More information about the Qt-interest-old
mailing list