linux-surface / iptsd

Userspace daemon for Intel Precise Touch & Stylus
GNU General Public License v2.0
86 stars 39 forks source link

[SP7] Laggy pen detection for handwriting #125

Closed Emporea closed 1 year ago

Emporea commented 1 year ago

I am using Xournal++ with surface kernel and iptsd 1.2.0 (clean install today, no old configs) on fedora 38 on a surface pro 7.

Thank you for all your hard work. I appreciate it.

But I reinstalled Windows 10 and 11 yesterday for the lulz and noticed again how much smoother the pen detection is on windows (everything else is super slow though... still windows obv.. :D ).

Back to Fedora today

If I run sudo iptsd-show (iptsd-find-hidraw), I can clearly see that the "where" marker has a pretty high delay, so it moves behind the actual pen when I write. This is not a pleasant sensation, and unfortunately Windows does a much better job at this (obviously because of the proprietary drivers) ....

Is there any way to speed up this detection, or do we have to live with the delay?

(Or are there other configuration options to make it faster that I have missed so far?)

StollD commented 1 year ago

There are multiple layers to this issue:

Another important point is that the hardware itself has latency. Windows tries to hide it by using predictive algorithms, but this AFAIK is only done in some apps (e.g. OneNote). You can find reports on e.g. Reddit where people report that they have similar latency in Photoshop, but no latency in OneNote.

For more information, check this issue: https://github.com/linux-surface/linux-surface/issues/1061

Emporea commented 1 year ago

Thank you for your long answer. Helped me to understand it. I will close it because the issue already exists for SP4.