Decided to make this a thread after some days of troubleshooting and googling around. I just can't get acceptable quality on Discord with screensharing. I tried using Vesktop and Equibop which were common suggestions from others, but while they allow me to finally stream with sound, the stream quality careens into a stuttery mess after a few seconds. If I choose "Prefer Smoothness", the quality is garbage (naturally) but the stream still becomes messy and stuttery after a while. When I choose "Prefer Quality", the stream looks like I want it to look - except after 10 seconds it becomes stuttery and unwatchable as well. Sometimes, the stream will also say "Stream Failed to Start: Error" and it will only work again when I disable Hardware Acceleration.
Strangely enough, the regular flatpak discord client is the only one that can keep the quality afloat, but it also stutters after streaming for a few seconds and the sound (depending on the game there's no sound but some games do have sound) begins to lag with the stream as well (on vesktop client it doesn't, the sound stays perfect but the image will still be bad). For now I have resorted to hosting with Sunshine and my friends watch my game over Moonlight, which works perfectly, but I can't force everyone to get Moonlight + LogMeInHamachi every time they want to watch me stream, and I don't want to push 2 entirely unrelated programs/tools on to people all the damn time. Also, I don't have this issue on Windows at all (but I'd really prefer not to use Windows anymore). I have RTX 3060 and Intel i9-11900 processor with 32 GB RAM.
My guess is that Discord on Linux (no matter the client) still uses CPU encoding of sorts instead of GPU encoding. Unfortunately i have no idea how to go on about fixing this anymore. Does anyone have any better idea? I'd be willing to distro hop as well if Bazzite is the issue, though I doubt it. I put screenshots in this post as well as a video of the "Prefer Quality" setting on Equibop in motion (about 10 seconds in the stream becomes stuttery and hard to follow which is the chief complaint here) Game is Persona 5 Strikers but this happens with pretty much every game