Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nvidia Gamescope VRR (Monitor VRR reverting to max instead of staying in range) on Wayland #1617

Open
3 of 6 tasks
jrgiacone opened this issue Nov 7, 2024 · 5 comments
Open
3 of 6 tasks

Comments

@jrgiacone
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

I am currently using Arch with Plasma on Wayland and Nvidia 565. Unsure if it is a gamescope issue or a nvidia driver issue. However, when using gamescope and turning on the monitors frame rate HUD to see the current refresh rate with a game like new world running in gamescope with HDR on and FPS in the 90-100 range the monitor will consistently jump to the max refreshrate. When gamescope is not used the monitor matches and stays within the 90-100 range without bouncing to max refresh rate.

Steps To Reproduce

  1. Launch New world or any game with HDR with the following options: gamescope -W 3440 -H 1440 -r 165 --hdr-enabled --force-grab-cursor -f --mangoapp -- gamemoderun %command%
  2. Turn on monitor HUD to see current refresh rate. I am using a aw3423DWF and a LG27gl83a-b and it is present on both.
  3. While gaming play a game that keeps the FPS below the max monitor refresh rate, ideally 90-120 of 165 where you know it will not jump to 165. Watch as the monitor continually shoots past to max refresh rate while the fps does not dip below 90 or 60 on 1% lows.
  4. Run the same test without gamescope and just gamemoderun '%command%' in steam and the issue is not present.

Hardware information

- Distro: Arch
- CPU: amd 5800x
- GPU: Nvidia 3080
- Driver Version: 565.57.01-2

Software information

- Desktop environment: KDE 6.2.3
- Session type: Wayland
- Gamescope version: 	3.15.14-1
- Gamescope launch command(s): `gamescope -W 3440 -H 1440 -r 165 --hdr-enabled --force-grab-cursor -f --mangoapp -- gamemoderun %command%`

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

No response

@matte-schwartz
Copy link

matte-schwartz commented Nov 7, 2024

what about if you drop off the --mangoapp argument and just check your monitor's built-in refresh rate OSD?

there is a known issue within gamescope (and not GPU specific) where mangohud overlays can spike your monitor's refresh rate up to maximum in both the Wayland backend and the DRM backend, especially ~60% or below FPS of your monitor's true maximum refresh rate.

this can also be triggered by: a cursor, GamepadUI side menus, and toast notifications from Steam

@jrgiacone
Copy link
Author

what about if you drop off the --mangoapp argument and just check your monitor's built-in refresh rate OSD?

there is a known issue within gamescope (and not GPU specific) where mangohud overlays can spike your monitor's refresh rate up to maximum in both the Wayland backend and the DRM backend, especially ~60% or below FPS of your monitor's true refresh rate

I will try removing mango app when I get in this evening! I don't think I noticed with global mango hud running via goverlay, but yea i used mangoapp to validate HDR was on

@jrgiacone
Copy link
Author

jrgiacone commented Nov 8, 2024

what about if you drop off the --mangoapp argument and just check your monitor's built-in refresh rate OSD?

there is a known issue within gamescope (and not GPU specific) where mangohud overlays can spike your monitor's refresh rate up to maximum in both the Wayland backend and the DRM backend, especially ~60% or below FPS of your monitor's true maximum refresh rate.

this can also be triggered by: a cursor, GamepadUI side menus, and toast notifications from Steam

I've tried removing everything up to just gamescope -W 3440 -H 1440 -- gamemoderun %command% and it is the same issue. It is even notable just in the menu and I could record it to show. In the menu when launched with gamescope the VRR fluctuates from 80-165 when FPS are at 110.

When I just run gamemoderun %command% it holds at 104 as shown in the menu.

Would a series of videos showing it help?

@jrgiacone
Copy link
Author

IMG_0.1.MOV
IMG_0.MOV

I've attached both videos we will see how they play, but in one you can clearly see the impact of gamescope

@matte-schwartz
Copy link

matte-schwartz commented Nov 8, 2024

yeah it looks exactly the same issue as the gamescope DRM backend (gamescope-session), but with the DRM backend you can at least mitigate it.

I have an open bug report for it here if you want to leave a comment on it: https://bugs.kde.org/show_bug.cgi?id=493090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants