ValveSoftware / SteamOS

SteamOS community tracker
1.53k stars 69 forks source link

[OLED] Gamescope(?) hangs/freezes external applications when switching from fullscreen to windowed while rendering something using vulkan. #1350

Open Haxorzz opened 6 months ago

Haxorzz commented 6 months ago

Your system information

Please describe your issue in as much detail as possible:

I expected the application to go from fullscreen to windowed and vice versa with no issue. Instead sporadically (more often than not) the application seems to instantly hang when going back from fullscreen and the only way to stop the hang is by going fullscreen (usually via a shortcut) and triggering some overlay like the exit confirmation pop up. This usually also required the app to be actively rendering something like a game or a 3d scene using vulkan. If you try the fix without going back into fullscreen, it usually does atleast draw the application's interface but with issues like not properly redrawing the UI over the last rendered game frame. I am not aware of this occuring on the LCD steam deck.

Steps for reproducing this issue:

  1. Launch a flatpak or appimage in game mode
  2. Go exclusive fullscreen (usually rendering something like a game using vulkan)
  3. Use a shortcut or similar to go back to windowed (Hangs here)

It is slightly sporadic as sometimes it seems to go into windowed with some slight issues like application UI not redrawing right.

Haxorzz commented 6 months ago

Similar issue experienced by this issue and much more similar to the comments ValveSoftware/gamescope#1040

Haxorzz commented 6 months ago

This Reddit thread and the comments have the exact same issue. Seems like this is specific to vulkan

godfreyatlast commented 6 months ago

Same issue here, however with the yuzu emulator. Screen image freezes when not in full screen, resumes when returning to full screen. Interestingly, this only happens when the Vulcan driver is used.