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.