Slow XQueryPointer?

Lauri Kasanen cand at gmx.com
Thu Jan 26 05:22:02 PST 2012


Hi list

Tracing why there's the occasional delay in Irrlicht apps showed the culprit as XQueryPointer.

It's called once per frame, but occasionally it takes much longer than the average 80us - up to 30ms. This is a huge delay and easily noticable as a skip/jitter.

Trying various alternatives, like using the mouse position from the last Motion/Click event proved jerky/jittery and seemed to lag the mouse by some frames.


Any suggestions on making the call faster? Would it be possible to use it with a timeout, say, if it takes over 1ms, abort?

-- 
- Lauri



More information about the xorg mailing list