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
Lagging when scrolling PDF #4770
Comments
I don’t see a link to logs.i3wm.org. Did you follow https://i3wm.org/docs/debugging.html? (In case you actually provided a link to a logfile, please ignore me.) |
Thanks for your issue but i3 should generally not affect this behavior. To confirm, try reproducing this with another wm like awesomewm or openbox (by simply replacing |
You are right, I tried with both awesome and openbox and observed the same lagging behaviour. I thought I had covered my bases by also testing in Gnome/Sway. Do you have any ideas why this would be an issue in i3/openbox/awesome but not in gnome (Xorg)? This hasn't always been the case with zathura. I have tested with very old versions of zathura (of which I am confident, that they used to work) and still observed lag. |
I have tested this configuration on a 1080p laptop (Dell XPS 9550), and there seems to be no lag. So --- as far as I can tell --- this issue is due to using a 4k screen. I suppose gnome does scaling differently? I changed the |
You could try reducing the resolution on your 4k screen to 1080p to see if the high resolution really is the trigger for the problem. My guess would be that GNOME and sway are composited, and i3 isn’t. Have you tried using a compositor like https://github.com/chjj/compton to see if that helps? |
Thank you @stapelberg for coming back to this issue.
The following applications do not lag in i3 on a 4k monitor. Everything points to the issue lying with Zathura, however the fact that it isn't an issue on gnome (both Xorg and Wayland) or sway somewhat defeats this thesis. |
I just gave this a shot — using zathura to open https://na.s-tec.shimano.com/s3_assets/filelibrary/Catalogs/2021_Entry_Catalog_ENG_v01.pdf on a 4K display, I don’t see any lag regardless of whether the window is 50% of the screen or in fullscreen mode, and regardless of whether I’m using the Page Up and Page Down keys for scrolling or the mouse wheel. Can you create a new user account on your machine and reproduce the issue with a default i3 config? Can you also provide a video so that we can see what kind of lag you’re experiencing? |
Yes!
Then login via
Gives the following videos: one is with lag and fullscreen, the other with no lag where the PDF only fills a third of the screen. One can clearly see the lag in the fullscreen variant, because after my fingers have left the touchpad, Zathura is still scrolling. Whilst I haven't shown this in this exact setup:
|
Thanks for the details. I can’t reproduce the issue you’re seeing on any of my machines. I went as close as possible to your setup by testing it on my ThinkPad X1 Extreme running Zathura (poppler) on Fedora, but it scrolls smoothly: IMG_0873.MOVTo me, it looks like Zathura has trouble keeping up with the scroll events, but I’m not sure why. Because i3 isn’t in the loop at all when window contents are rendered (Xorg queries Zathura directly, i3 literally can’t tell when window contents are updated), I think you should report this issue with the Zathura developers. They should be able to help you track it down more. |
I'm submitting a…
Current Behavior
When scrolling a PDF in
zathura
orevince
, there is significant lag if the window is larger than about 60% of the screen. The larger the window, the more lag there is.I am filing this issue under
i3
because issue is not present on gnome (both Xorg and Wayland), sway (Wayland).General scrolling (i.e. in Firefox) is not affected and works perfectly. I am using
MOZ_USE_XINPUT2
in/etc/profiles.d/use-xinput2.sh
for better scrolling here.Expected Behavior
That there is no lag when scrolling.
Reproduction Instructions
Open an arbitrary document in
zathura
, make the window large (doesn't necessarily have to be full screen) and scroll up and down. An example document would be this shimano bike components parts list with many pictures which may exasperate the lagging and make differences more visible.Environment
Output of
i3 --moreversion 2>&-
:Minimal configuration to produce the lag.
Since there is no crash, I haven't included the logfile. I happy to do so, if you think it will help for this kind of issue.
I am using a 4k screen on a capable Dell XPS 1510 (i7-11800H 16 Core, 24MB cache, 32 GB RAM). I don't think hardware is a limiting factor.
I have turned off any touchpad acceleration features and reset my
libinput
configurations to the default. So I don't think it is the scrolling action that is lagging.This hasn't always been an issue. I cannot pin down exactly when the lagging started, because most of the time I only have documents open on half of the screen.
I suspect this might be some sort of GTK configuration issue, similar to the slow startup of gtk applications in i3, but not in gnome if the
xinitrc
isn't correctly configured.For completeness, I am including my
~/.xinitrc
belowI start my X session with
xorg-xdm
.The text was updated successfully, but these errors were encountered: