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
Laggy scrolling on Wayland #1526
Comments
As @codebrainz said the scrolling is done by the Scintilla editing widget we use. Possibly try the Scite editor which is the reference platform for Scintilla and see if the problem exists there too. One thought is that IIRC GTK on X11 aggregated mouse moves and scrolls, but maybe that isn't working on Wayland, so Scintilla is responding to every scroll event individually. Also I thought Scintilla had a smooth scrolling setting, but maybe thats only on its OSX port since I can't see it just now. [Edit: PS given that its all text, Scintilla rendering is almost certainly CPU only, and if yo have line wrap on its even higher usage] |
@william01110111 note also that AFAIK none of the regular contributors use wayland, so you will probably need to do the search for possible solutions. |
I disabled line wrap and most other features with little to no effect. I don't have a problem when using a normal mouse scroll wheel, only with high precision touch pad scrolling (which presumably sends many more scroll events). I can't find a GTK3 version of Scite, so I can't test that on Wayland. |
Wow, Arch, the bleeding edgest of distros only has GTK2 Scite, but Ubuntu LTS the boring edgest of distros has only GTK3 Scite 😁 I'm afraid I don't know anything about wayland to suggest where to go from here, maybe someone else has ideas? |
Strange there is no GTK3 SciTE in the AUR. I tried to compile SciTE from the latest source, which worked but still gave me GTK2. No instructions on how to build for or run with GTK3. Anyway, this but doesn't make Geany unusable, its just annoying. |
|
Thanks. Got it running, but something strange is happening. SciTE is not scrolling at all. Everything else works fine. |
Not even with the mouse? I suspect Scite hasn't been tried much on Wayland either. |
No, mouse works. Just not with scroll wheel. |
Looks like I'm an idiot and cloned an old, non official version of SciTE. I'm running into https://sourceforge.net/p/scintilla/bugs/1901/. I have to go to bed now, but I will try to get newer SciTE up and running and test it out when I have a chance. |
Scintilla uses hg, not Git, so unless you want to use hg just grab the TGZ file off the Scintilla website. |
Update: this problem appears to now be completely resolved. The |
OS: Arch Linux
version: 1.30.1 gtk3 from Arch's AUR
With GTK3 on Wayland, vertical scrolling is laggy. When scrolling slowly, its fine but as soon as I scroll faster (possibly one line per frame is the threshold) it starts lagging. It immediately comes to the correct position when I stop scrolling, and occasionally updates while I'm scrolling (about 1fps). Everything works if the window is smaller then half the screen (screen resolution is 2560x1600), but there is still high CPU usage while scrolling.
I encounter the problem on Sway and Gnome on Wayland, but there is no issue on XFCE4 with X11.
Based on the high CPU usage and dependence on window size, my guess is that it is CPU rendering and, if more scroll events have come in before it is done rendering, it renders the next frame and keeps going until it has caught up.
The text was updated successfully, but these errors were encountered: