Difference between revisions of "Gamescope"

From Linux Gaming
Jump to navigation Jump to search
Line 9: Line 9:
=== Setup ===
=== Setup ===
Run <code>sudo setcap 'CAP_SYS_NICE=eip' $(which gamescope)</code> to get a smooth gaming experience.<ref>https://www.reddit.com/r/linux_gaming/comments/w4u69f/my_gamescope_was_too_nice_and_yours_is_too/</ref>
Run <code>sudo setcap 'CAP_SYS_NICE=eip' $(which gamescope)</code> to get a smooth gaming experience.<ref>https://www.reddit.com/r/linux_gaming/comments/w4u69f/my_gamescope_was_too_nice_and_yours_is_too/</ref>
=== Troubleshooting ===
You may experience stuttering and lags. Try the following flags:
<code>--rt -r <your_monitor_refresh_rate> --immediate-flips</code>
Replace <code><your_monitor_refresh_rate></code> with a number, for example 144 if you have a 144hz monitor.


== References and notes ==
== References and notes ==

Revision as of 17:38, 31 March 2023

Gamescope creates a virtual desktop for your game. This can be beneficial if your game doesn't play nicely with your desktop, for example if it doesn't catch your mouse, or if it breaks when loosing focus.

You can use Gamescope for downsampling. For example, use gamescope -f -w 3840 -h 2160 -- as command prefix, to downscale from 4k. The same can be achieved in Lutris, by enabling Gamescope, and setting 3840x2160 as resolution.

You can also use Gamescope for upsampling with FSR, by specifying the -U option, for example with gamescope -U --fsr-sharpness 4 -- as command prefix. 4 is an example value, replace it by something between 0 (max) and 20 (min). This also works for native games.

Type gamescope --help in the terminal to see all options.

Setup

Run sudo setcap 'CAP_SYS_NICE=eip' $(which gamescope) to get a smooth gaming experience.[1]

Troubleshooting

You may experience stuttering and lags. Try the following flags:

--rt -r <your_monitor_refresh_rate> --immediate-flips

Replace <your_monitor_refresh_rate> with a number, for example 144 if you have a 144hz monitor.

References and notes