Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow input on X11 from Wacom tablet #2840

Closed
pbartyik opened this issue Feb 21, 2021 · 6 comments
Closed

Slow input on X11 from Wacom tablet #2840

pbartyik opened this issue Feb 21, 2021 · 6 comments
Labels
bug Input need info rendering Concerns rendering of a document

Comments

@pbartyik
Copy link

pbartyik commented Feb 21, 2021

Affects versions :

  • OS: Arch linux
  • Version of Xournal++ 1.0.20-2

Describe the bug
Slow reaction to input when drawing with Wacom tablet on X11 (gnome-shell)
No delay in input reaction in Krita when drawing with Wacom tablet on X11 (gnome-shell)
No delay in input reaction when drawing with Wacom tablet on wayland (sway)
No delay in input reaction when drawing with mouse on X11 (gnome-shell)

To Reproduce
Steps to reproduce the behavior:

  1. Launch xournalpp from gnome-shell running X
  2. write a few letters (first couple letters are processed OK, after that it starts lagging)

Input Logs
debug_gdk_input.txt
debug_input.txt

Expected behavior
There should be no delay on X11 using wacom tablet like there isn't one on wayland / or with mouse on X11

Screenshots of Problem
lag gif

@Technius
Copy link
Member

AUR build looks like it's being compiled in debug mode (default) instead of release mode, which may be responsible for slowness:
https://github.com/archlinux/svntogit-community/blob/826a968868664bac419f45cc4f89f597f6af458b/trunk/PKGBUILD#L23

I don't use Arch though. Can someone confirm?

@tattsan
Copy link
Contributor

tattsan commented Feb 21, 2021

I use Arch Linux. I always build 1.1.0-devel with:

cmake -DCMAKE_INSTALL_PREFIX=/usr
  • I run Xournal++ on X11, but not use gnome-shell.
  • I use Wacom Cintiq pro 32 and Wacom Cintiq 16.
  • I don't use Xournal++'s sound recording feature, no jack connection.

and no delay occurs. I've also checked Arch's official package 1.0.20-2, but got no delay.
Needs more info ...

@pbartyik
Copy link
Author

pbartyik commented Feb 22, 2021

The delay occurs with basic official community/xournalpp 1.0.20-2 (1.1 MiB 4.2 MiB) (Installed) as well. I didn't install the AUR git package, I cloned the repo and built it manually as per instructions found here: https://github.com/xournalpp/xournalpp/wiki/How-to-provide-debug-info-for-input-related-bugs

I use the Wacom intuos pen & touch small tablet, model CTH-480.

What further information would be needed?

@rolandlo rolandlo added the rendering Concerns rendering of a document label Jul 25, 2021
@bhennion
Copy link
Contributor

@pbartyik Is this still happening with the latest release?

If so, could you provide a libinput record of you stylus: run

$ libinput record > recording.yml

it will ask for you to select a device. Let is run in the background. Then open Xournal++ and try to write something with the stylus. Go back to you terminal and stop the recording (CTRL + C). Then post here the yml file. (you may need to be in the input group or to run as root/sudo for libinput record to work).

@MeisterLLD
Copy link

MeisterLLD commented Nov 11, 2021

Did you solve that ? I had the same problem until I found out that what was causing it was the artithmetic mean stabilization, I disabled it and I have no input lag now. Nonetheless xournalpp is still pretty slow when writing text for example.

@bhennion
Copy link
Contributor

bhennion commented Mar 9, 2024

Closing for inactivity and lack of info

@bhennion bhennion closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Input need info rendering Concerns rendering of a document
Projects
None yet
Development

No branches or pull requests

6 participants