-
Notifications
You must be signed in to change notification settings - Fork 233
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
Games are blinking with weird colours in fullscreen mode when using upscaling #1739
Comments
Can you share a full log that starts from launching Gamescope? |
Hmm, I bought the game and I'm not seeing the same type of flickering yet on a laptop I have with a 3070 dGPU but I'll keep trying for a bit. The picture you shared looks very similar to #1593 (comment) though. |
Wow, you bought the game just for debugging my problem? o_O |
I do see the issue on my desktop Nvidia rig as well, it started happening after switching between TTY consoles a few times. I highly suspect it's the same corruption issue as the DRM backend that I linked, since both that issue and your issue started happening at the same time during my testing today. Unfortunately I don't think it's been picked up as an official bug by Nvidia yet so I don't really have any suggestions in the meantime other than stay tuned |
I'm using the wayland backend right now, I get errors in console when I try to use DRM or SDL ones. Should I link the logs with those backends? |
SDL backend I already know the issue, you need #1548 which isn't in a gamescope release yet DRM I'd need to see logs to know what's going on there. |
Flickering seems to come from somewhere in gamescope's composition pipeline, you can trigger the same flickering without FSR just with |
not game specific either, but just appears to be NVIDIA-specific. working: IMG_2784.movflickering: IMG_2785.movCCing @cubanismo on this, this issue should be pretty straightforward to replicate on any Wayland DE (I'm using Plasma 6 Wayland) with NVIDIA drivers. I'm on 570.86.16 but past driver versions (and closed modules) are also affected by the issue. I'll try to dig in more to see if I can narrow down what part of our composition process in gamescope might be causing issues here. |
Here are the logs: https://gist.github.com/StragaSevera/49beb9d54fd0ca74884cb62b2821e769 Yep, the command you listed produces flickering for me too =-) |
Thank you for the report. For future reference, I've filed NVIDIA internal bug 5089016 to track this issue. |
From what I've been able to gather so far: The issue happens in gamescope while nested on wayland under both plasma desktop and cosmic desktop, along with gamescope's DRM backend with the same commands as above. If the host compositor is using direct scan-out and nested gamescope is also using direct scan-out, the issue does not occur. If you force composition within gamescope but leave direct scan-out enabled within the host compositor, then you'll start to see the flickering recorded above. Notably, the flickering only starts to occur once gamescope's window is fullscreen on the host compositor. you can avoid the flickering altogether on nested gamescope by setting an environment variable to disable direct scan-out on the primary compositor ( Of course, this doesn't apply to gamescope's DRM backend since force composition is our process for disabling direct scan-out, so once you do that it will immediately start flickering. To make things even more complicated, it is actually possible to sometimes get gamescope composition to work properly in the DRM backend. If you make gamescope-session your first graphical target after plymouth (skipping SDDM for instance) and you start the session with scan-out disabled, no flickering occurs at first. If you enable/disable HDR, or if you switch sessions (ie shutdown steam -> start plasma desktop -> logout and start gamescope-session again), the flickering will start to occur from the moment the session launches. I still think the commands provided above for nested Wayland desktop are the most consistent way to reproduce the flickering, but maybe some of the additional context will help for narrowing down the issue. |
This is kind of bizarre but the issue also does not occur on nested wayland if you enable HDR on Plasma 6 desktop, but do not enable it in gamescope, ie |
Is there an existing issue for this?
Are you using any gamescope patches or a forked version of gamescope?
Current Behavior
Whenever I launch a game upscaled with filters (either fsr or nis) and put it in fullscreen mode - either by shortcut or launch option, the screen starts blinking with weird colours and the Steam console log is spammed with

[gamescope] [Error] xdg_backend: Compositor released us but we were not acquired. Oh no
.Tried this on two separate games - Graveyard Keeper (native) and Titan Quest (proton) - both have this blinking.
Attaching a photo of the screen, because for some reason a screenshot doesn't capture the artifacts:
Steps To Reproduce
gamescope -w 1920 -h 1080 -F fsr -- %command%
.Hardware information
Software information
Which gamescope backends have the issue you are reporting?
Logging, screenshots, or anything else
No response
The text was updated successfully, but these errors were encountered: