Poor performance on wayland
System
Distro: Ubuntu 23.04 Lunar
wayland session
Mesa 23.0.2-1ubuntu1
CPU: 11th Gen Intel® Core™ i3-1115G4 × 4
GPU: UHD Graphics (TGL GT2)
Bug summary
While using GNOME wayland session gtk4 apps have lower framerate comparing to X11 GNOME session and KDE Plasma both on wayland and X11. I previously reported this issue in Loupe repo: https://gitlab.gnome.org/Incubator/loupe/-/issues/114
I found that these apps are affected: kgx, loupe, rnote, gnome settings, nautilus
Steps to reproduce
Let's reproduce this issue with Loupe:
- Open Loupe
- Open any image
- Turn on
Show fps overlay
in GTK Inspector - Zoom in/out or swipe between images
Repeat the same steps in GNOME X11 session.
What happened
Fps drops below 50fps on wayland and constant 60fps on X11.
What did you expect to happen
Same 60fps on wayland as on X11.
Relevant logs, screenshots, screencasts etc.
Sysprof records
GNOME wayland: loupe-gwayland.syscap GNOME X11: loupe-gx11.syscap Plasma wayland: loupe-kde.syscap\
Screencasts
GNOME wayland: loupe-gwayland.mkv GNOME X11: loupe-gx11.mkv