
whyispete
Published
Runs out of the box without any problems, custom Proton is just the one I set as default, but native package works just as well.
prime-run gamescope -f -W 2559 -H 1439 --force-grab-cursor --disable-layers --expose-wayland -- %command%
When my second monitor was active, the mouse would escape out of the game to that monitor when hitting the screen border. Deactivating the monitor while playing fixed that problem.
The game worked with gamescope, but that currently has a bug with hybrid graphics with a dedicated NVIDIA GPU. I adapted a fix from the issue thread detailing the bug in the Github repo (https://github.com/ValveSoftware/gamescope/issues/1590#issuecomment-2825722470) These are the steps if you want to try it (with some explanation for non-techies):
- Clone the gamescope repository, enter the folder and init (basically downloading the gamescope code, entering its folder and updating the metadata, and git is a program used to manage code versions and distribution, and a "repository" is basically a database of code including past versions)
git clone https://github.com/ValveSoftware/gamescope.git
cd gamescope
git submodule update --init
- IMPORTANT: check out commit 1ab8009, since the patches don't work on later commits (a commit is like a version of the code)
git checkout 1ab8009
create the file gamescope_fix.patch in the current folder, paste the script found here: https://gist.github.com/peterambos/f834f42280f5bede44a57c22e869c9b5
same for the file gamescope_meson_fix.patch, found here: https://gist.github.com/peterambos/bc40e77b8f9a60408eee67d945eaa2c3
These patch files basically tell git "hey, please find these lines of code and replace them with the script I have here" so git knows where to put the code in the next step.
- apply the patches to the code
git apply gamescope_fix.patch
git apply gamescope_meson_fix.patch
- build the new code (convert the code into an actual program your computer can run)
meson setup build/
ninja -C build/
- test it (use
nvidia-smi
to see if the program "vkcube" is actually run by your dedicated GPU, if it isn't look into DRI_PRIME/DRI offloading or commands likeprime-run
if your distro has them)
build/src/gamescope -W 1920 -H 1080 -- vkcube
- install it
sudo install -t /usr/bin build/src/gamescope build/src/gamescopestream build/src/gamescopereaper build/src/gamescopectl --strip
This is running an older version of gamescope that is not automatically getting updates! Make sure to check if the bug is fixed in later versions, and if yes, go back to the official version! The best place to check is probably the link to the issue thread I posted at the top.