-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Background (color or image) noticeably affects performance on slower GPU's #6821
Comments
I've been scratching my head as to why my mouse movement has felt somewhat sluggish over the past weeks, as if I'd suddenly ran into some performance issue which would've resulted in poor fps.. Thank you for opening this issue; I commented out I'm running sway on an old(ish) thinkpad t450s (Intel(R) Core(TM) i5-5200U CPU, 12 GB ram) with a GeForce 940M dGPU which is switched off with bbswitch.
|
Is this a regression? Was it working better with a previous version of Sway/wlroots? |
If it is, it's not a recent regression. It's reproducible in sway 1.6 and wlroots 0.13 |
FYI: If it's not a regression, this may be because sway renders each layer for every frame (so it'd normally paint grey, background, window), and not rendering the background will be slightly faster. This is required if surfaces use transparency, and currently the only time it's skipped is for opaque overlays (like lockscreen) or fullscreen. |
@danieldg Thank you for the explanation. This is most likely it. So it's probably related to #5723 As a side note, it is worth mentioning that even in full screen, wlroots/sway is not on pair with other wayland compositors. It this a known issue?
|
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3488 should help when combined with #6844 |
Just tested it. Noticed some visual glitches, but it works. Thanks! |
If you noticed visual glitches with #6844, please report them in that PR. |
With scene optimizations merged with upstream wlroots, it would be nice to know if they improve this. With #6844 I have frame time consistency improvements with my laptop, it would be nice to have independent validation. |
Absolutely. #6844 also fixes the other performance issue I mentioned above. Amazing work, @Nefsen402. Thank you!
|
Closed by #6844. |
Sway Version:
Debug Log:
Configuration File:
Description:
It's probably clearly reproducible only on low-end GPU's and high resolution screens. I noticed this issue when scrolling in Firefox was not smooth on some pages, when it should (and it is w/o background color or wallpaper). Not reproducible in full-screen.
Step to reproduce:
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
glmark2-wayland -b build --run-forever --size 1800x1800
for example. (Link to glmark2)swaybg -o "*" -c '#000000' -m solid_color
Reproducible results on my system:
W/o any background:
After
swaybg -o "*" -c '#000000' -m solid_color
The text was updated successfully, but these errors were encountered: