Why sunshine+moonlight streem showing this weird small window glitch after inactivity for ~3 seconds

This weird glitch appears only in sunshine+moonlight streem, even in the kde-desktop. On the other hand, monitor shows display output correctly. Whenever i launch anything as fullscreen, sunshine stream start showing this weird glitch after ~3 seconds of inacitivity.
32 Replies
MrRay
MrRayOP•2w ago
Here is the systemd service which i enabled with this command to auto launch sunshine in the background "systemctl --user enable sunshine-gamescope.service"
MrRay
MrRayOP•2w ago
And i can say this issue is related to bazzite. Because before switching to bazzite i was using cachyos handheld edition with same setup. And this glitch was not there.
mrvictorywin (Ping on reply)
I didn't know sunshine could stream game mode, lemme try on game mode myself
MrRay
MrRayOP•7d ago
Did you try sunshine? Did you face any issue?
mrvictorywin (Ping on reply)
Sunshine stream was fine although I didn't launch any app. It streamed steam big picture & TTY with no errors.
MrRay
MrRayOP•7d ago
Yes, same for me. But try launching some games or applications.
mrvictorywin (Ping on reply)
Ok lemme try again
MrRay
MrRayOP•6d ago
It depend on how you are playing game. Like fullscreen or fullscreen borderless or borderless. Tried gta v, no man's sky, asphalt legend. Worked fine normally, but switching window mode(fullescreen/borderless) cause this glitch. Or while in game, opening decky sidebar(right sidebar) or steam sidebar(left sidebar) cause this issue. You have to move mouse cursor to get rid of this, but once you stop moving cursor same problem. 🤔Did you try? What was the result?
mrvictorywin (Ping on reply)
I didn't, hold on I got slightly different results: after a few seconds of inactivity, the window only horizontally expands. Content is moved to left instead of shrinking. It's still usable.
MrRay
MrRayOP•6d ago
🤔Why only bazzite game mode? CachyOS handheld worked fine.
mrvictorywin (Ping on reply)
I actually don't use Bazzite's game mode, I switch to TTY and launch steam & sunshine from terminal. Bazzite does not upgrade gamescope to maintain compat with nvidia. This could be the culprit. I will try the exact same thing on Arch.
MrRay
MrRayOP•6d ago
Also, mouse cursor lock to most of the games. If i for example switch to other software(like obs) running along side/in the background, i can't click on any of the option except the game itself. Keyboard works fine though
mrvictorywin (Ping on reply)
Repros on arch too
MrRay
MrRayOP•6d ago
Do you mean arch+game mode having same problem?
mrvictorywin (Ping on reply)
Yes @MrRay what version of sunshine does cachyos use?
MrRay
MrRayOP•6d ago
Not sure right now, because completed switched to bazzite few days ago. But i know they provide latest stable release
mrvictorywin (Ping on reply)
bazzite is also on latest stable
MrRay
MrRayOP•6d ago
No no no. I didnt have this issue on cachyos hanheld edition as well as on normal edition with chimeraos-steam-gamescope-session.
mrvictorywin (Ping on reply)
Does cachyos use chimeraos-* thing on both editions you tested?
MrRay
MrRayOP•6d ago
Tried many applications like konsole, dolphin. Even gaming No, on handheld edition they follow same approach bazzite go with. But normal edition is a normal desktop edition. Which i turned myself into steam os by instlling chimeraos-gamescope-session package
mrvictorywin (Ping on reply)
I'll try macOS moonlight
MrRay
MrRayOP•6d ago
I just reminded everything with empty mind 😂,
mrvictorywin (Ping on reply)
MacOS moonlight also broken btw are you on nvidia or amd?
MrRay
MrRayOP•6d ago
Amd
mrvictorywin (Ping on reply)
Same On host, stream is fine so my suspicion is towards moonlight
mrvictorywin (Ping on reply)
Hang on Moonlight glitches when cursor is hidden automatically (?!?!?!)
mrvictorywin (Ping on reply)
gamescope -C 9999999 -- dolphin No glitch :glorp:
MrRay
MrRayOP•6d ago
I will try next time i booted my pc. Thanks for helping
mrvictorywin (Ping on reply)
But WHY Definitely gamescope bug Time for git bisect:dispair: Good luck have fun Maybe I should not reach conclusions quickly Does ffmpeg support capturing kms? If it does we can quickly identify if sunshine + moonlight or gamescope is the culprit https://wiki.tonytascioglu.com/scripts/ffmpeg/kmsgrab_screen_capture It does 👀
MrRay
MrRayOP•6d ago
Obs in gamescope/game mode have one extra option "xshm" and it doesnt record anything except blackscreen with cursor. What does that mean?

Did you find this page helpful?