[compiz] Accessibility: mouse guides for Compiz, and forthcoming contributions
MC Return
mc.return at gmx.net
Fri May 1 12:21:25 PDT 2015
Hey Luca,
The performance problem you are experiencing is probably the latency
introduced by getting the mousepointer position via the mousepoll plugin
and a Mousepoller, which has problems to deliver the position updates
smoothly.
Mousepoll tries to solve the problem of not calling XQueryPointer ()
from individual plugins directly, but to centralize those calls, as they
are blocking and can sometimes take up to (as tests showed here) 200
nanoseconds to complete.
Nevertheless Mousepoll was a bad solution to a real problem - try to
simply update the mousecursor position by calling XQueryPointer () in
preparePaint (), which is called directly before painting, so each 16666
nanoseconds
at 60fps and is only enabled via setFunctions () if the showmouse plugin
(rulers or particles) is active.
Greetinx.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/compiz/attachments/20150501/99d80b8c/attachment.html>
More information about the compiz
mailing list