ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.02k stars 198 forks source link

Black Screen when Streaming with OBS specifically in Steamdeck's Gaming Mode #1387

Open Aeonitis opened 3 months ago

Aeonitis commented 3 months ago

Describe the bug Black/Blank Screen Streaming with OBS specifically in Gaming Mode

It seems a dev which works on a plugin which aims to enable in-game-mode streaming was redirected from a SteamOS issue. I am not related to that team anyway, just a gamer/dev which is curious about this problem, since I am happy to just run OBS as a second window in gaming mode once it works.

Many gamers wanna stream using OBS in Gaming Mode i.e. most of these discussions are related ever since the deck was out. Some discussion is here on using vulkan vkcapture

Confirmations

I had tested both and seen them working.


Why do I think this a gamescope problem? I am new to this stuff, just sharing my observations, so please correct me if I am wrong anywhere. When we play games in Game Mode on the Steam Deck, Gamescope, a Wayland compositor, takes control of the display, the games use XWayland (which translates X11 to Wayland) so it works with Gamescope.

This is different to Desktop Mode, where KDE Plasma relies on Xorg (via the X11 protocol) for desktop management. Plasma is inactive in gaming mode.

Apparently there is a solution on getting it to work using the OBS VkCapture plugin with rwfus, Read-Write OverlayFS for Steam Deck, which I didn’t bother confirming if it works.

Is VkCapture now the standard for interacting with Gamescope moving forward? Can you please explain the challenge of why this issue may be occuring?

Might be good to get a current state of affairs just to correct people like me on the challenges.

Thank you, please forgive me if I am breaking any protocol, I am just here trying to understand this issue a bit further.