I have noticed that two electron apps that I use regularly (Visual Studio Code and Obsidian) have notably bad performance on Fedora with Wayland. I have noticed this since Fedora 36 (the first version that I have used, so it could go back further than this) this has been occurring. Typing input is often laggy to the point of being unusable and often menu windows get randomly blacked out:
This happens on both the deb and flatpak version of vscode. I have long chalked this up to the proprietary nvidia drivers and Wayland not playing nice (I use an RTX 3060 Ti with the most recent 535 proprietary driver) and electron just generally being terrible, but recently I have tried Visual Studio code on Linux Mint (you can get Wayland quite easily by installing gnome-shell) and NixOS on Wayland. It works fine with Fedora with X11 so I think this is a uniquely Fedora/Wayland/Electron/Nvidia issue.
Does anyone know why this is or how to fix it? Can anyone see if this issue is also reproduced on a system with an AMD GPU, for instance? Thanks.
What graphics driver are you using? Are you using AMD integrated graphics or do you have an external Nvidia GPU as well?
Interestingly, with the release of Asahi Fedora, I have had a chance to try this with the drivers designed by the Asahi team for Apple GPUs and vscode works smoothly there. Ironically, it also runs better in a VM using software rendering. It is only using Nvidia drivers in Fedora where I have encountered this issue.
Also experiencing it here:
Fedora 39
Gnome 44.0-7
Haven’t changed defaults from Wayland for anything
Nvidia GeForce RTX 4090 w/ 545.29.06-2 proprietary driver release
On Firefox/VIM/whatever normal applications, I seem to have very reasonable typing experience, but on Slack and Discord installed from Flathub, I’m getting extreme lag and stuttering where letters I’ve typed pop up and then disappear and then pop back up. It’s about a 2 second delay before the display settles out after I stop typing.
I suggest you do a full upgrade to the latest package versions, wait at least 5 minutes after the upgrade completes then reboot and try again to see if later packages may have already fixed the problem. sudo dnf upgrade --refresh done from the cli in a terminal is the way I do it.
When I do that it says nothing to upgrade, and I just did a round of updates as well not 20 minutes ago, with similar results. What’s going wrong? How would you check things from here?
And switching back to X11 (logged out, used the gear icon to log back into a gnome + X11 session) fixed the stuttering and lag, which indicates that it’s a function of Wayland still.
Hm.
I noted you have 2 nvidia GPUs and there was an earlier thread (cant find it right now) about the second GPU not being usable with wayland but working fine with X11. That user had 5 monitors with one attached to the second gpu and wayland was unable to drive the monitor on the second gpu.
Switching back to X11 fixed everything, so I’ve just been running that for the last couple weeks, but it’s worth noting that I only have one graphics card installed. My processor has onboard graphics, but they’re disabled since Nvidia doesn’t play nicely with that in general.