ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.08k stars 205 forks source link

[NVIDIA] frames stop being presented (and appear to hang) sporadically when using the WSI layer and HDR #1592

Open matte-schwartz opened 4 hours ago

matte-schwartz commented 4 hours ago

Is there an existing issue for this?

Are you using any gamescope patches or a forked version of gamescope?

Current Behavior

Some games, especially Sony PlayStation ports, seem to hang and stop presenting frames even while game audio remains in the background. The most consistent repro I have of this now is with God of War: Ragnarok, with the launch option: gamescope --hdr-enabled -e -f -h 2160 -w 7680 -r 120 -- %command%

around 50% of the time, the game will hang at some point within the first 20-30 seconds or so. will include screenshots of what this looks like + in-game settings

Steps To Reproduce

  1. Launch God of War: Ragnarok with gamescope --hdr-enabled -e -f -h 2160 -w 7680 -r 120 -- %command%
  2. Attempt to load the game
  3. If gamescope hangs on one frame, while otherwise remaining responsive, you've hit the issue

If you don't freeze on launch and load-in, try quitting and re-launching 1-2 more times.

Hardware information

- Distro: Arch Linux
- CPU: 13th Gen Intel(R) Core(TM) i9-13900K
- GPU: NVIDIA GeForce RTX 4090
- Driver Version: NVIDIA 565.57.01

Software information

- Desktop environment: Plasma 6.2.1
- Session type: Wayland
- Gamescope version: 3.15.13
- Gamescope launch command(s): `gamescope --hdr-enabled -e -f -h 2160 -w 7680 -r 120 -- %command%`

Which gamescope backends have the issue you are reporting?

Logging, screenshots, or anything else

After gamescope hangs: image

in-game settings from a successful launch (no changes from the hang): Screenshot_20241022_150829

bug report immediately after a hang: nvidia-bug-report.log.gz

Proton log from a hang: steam-2322010.tar.gz

matte-schwartz commented 4 hours ago

@cubanismo I was still able to repro the WSI hang in God of War: Ragnarok, here's a new issue report as there were no matches I was finding

pbasov commented 3 hours ago

Can confirm the same issue with Elden Ring on 565.57.01 with launch command: gamescope -w 3840 -h 2160 --adaptive-sync -f --hdr-enabled --fullscreen -- %command%

Game launches, HDR works. After 3-5 minutes of gameplay usually hangs with sound running in background.