shadowfly n00b
Joined: 21 Feb 2024 Posts: 5
|
Posted: Fri Jun 07, 2024 9:36 pm Post subject: Gamescope - Problems with Flatpak Steam |
|
|
>Backstory
I am currently trying to switch from X11 to Wayland (again). As my GPU is quite fast, i was using downsampling when i was still on Windows, and on Linux i use xrandr scaling like this:
Code: | xrandr --output DisplayPort-0 --scale 1.5 && gamemoderun mangohud %command% && xrandr --output DisplayPort-0 --scale 1 |
As i was unable to figure out how to downsample on Wayland directly, i read https://www.pcgamingwiki.com/wiki/Glossary:Downsampling, and figured out i would use Gamescope.
>My Software
I am running Flatpak-Steam https://flathub.org/apps/com.valvesoftware.Steam to isolate the closed source software a bit more from my system, so i installed Flatpak-Gamescope https://flathub.org/apps/org.freedesktop.Platform.VulkanLayer.gamescope to match it.
>The Problem on Wayland
When i run gamescope -- %command% (In my case for Baldur's Gate 3 on Vulkan), a message appears:
Code: | CreateSwapchainKHR: Creating swapchain for non-Gamescope swapchain.
Hooking has failed somewhere!
You may have a bad Vulkan layer interfering.
Press OK to try to power through this error, or Cancel to stop.
|
When i press OK, another pup-up is shown:
Code: | QueuePresentKHR: Attempting to present to a non-hooked swapchain.
Hooking has failed somewhere!
You may have a bad Vulkan layer interfering.
Press OK to try to power through this error, or Cancel to stop.
|
When i press OK, the game just starts completely normal. However it seems Gamescope is off or something because Code: | gamescope -w 3840 -h 2160 -W 2560 -H 1440 -f -e -- gamemoderun mangohud %command% | does nothing more than this. (Even though it should allow me to set my render resolution in game to 3840x2160).
>The Problem on X11
When i run gamescope -- %command% (In my case for Baldur's Gate 3 on Vulkan), the game crashes immediately. Then the game's crash reporter asks me to send a crash report.
>Potential Solution
I have found someone with a similar problem https://www.reddit.com/r/linux_gaming/comments/18eu14n/flatpak_gamescope_has_suddenly_stopped_working/, but their solution does not work for me:
Code: | user $ flatpak update --commit=0b3543a920d07271426945f9ebde207de89232475d6f6ba8bf98ff7cb3f2590e runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
Searching for updates...
Error: Server returned 404
|
>I loose track
In Line 936 in https://github.com/ValveSoftware/gamescope/blob/master/layer/VkLayer_FROG_gamescope_wsi.cpp there is the first error message displayed when "if (!gamescopeSurface)", so i suspect gamescope is off for me. Unfortunately i can't make much of the code.
>System:
- OS: Gentoo Linux 2.15
- Kernel: 6.1.90-gentoo
- Windowing System: Wayland and X11 tested
- Desktop Environment: KDE Plasma 5.27.11
- GPU: AMD RX 6800XT
- Display: 2560x1440@165FPS, VRR
Thank you for your time! |
|