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
Here is the systemd service which i enabled with this command to auto launch sunshine in the background "systemctl --user enable sunshine-gamescope.service"
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.
I didn't know sunshine could stream game mode, lemme try on game mode myself
Did you try sunshine? Did you face any issue?
Sunshine stream was fine although I didn't launch any app. It streamed steam big picture & TTY with no errors.
Yes, same for me. But try launching some games or applications.
Ok lemme try again
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?
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.
🤔Why only bazzite game mode? CachyOS handheld worked fine.
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.
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
Repros on arch too
Do you mean arch+game mode having same problem?
Yes
@MrRay what version of sunshine does cachyos use?
Not sure right now, because completed switched to bazzite few days ago.
But i know they provide latest stable release
bazzite is also on latest stable
No no no. I didnt have this issue on cachyos hanheld edition as well as on normal edition with chimeraos-steam-gamescope-session.
Does cachyos use chimeraos-* thing on both editions you tested?
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
I'll try macOS moonlight
I just reminded everything with empty mind 😂,
MacOS moonlight also broken
btw are you on nvidia or amd?
Amd
Same
On host, stream is fine so my suspicion is towards moonlight
Do ou have any idea if this is the reason https://discord.com/channels/804382334370578482/1409547114312368178/1409579620520427675
Hang on
Moonlight glitches when cursor is hidden automatically (?!?!?!)
gamescope -C 9999999 -- dolphin
No glitch
:glorp:I will try next time i booted my pc. Thanks for helping
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 👀
Obs in gamescope/game mode have one extra option "xshm" and it doesnt record anything except blackscreen with cursor. What does that mean?