Difference between revisions of "Gamescope"

From Linux Gaming
Jump to navigation Jump to search
(Created page with "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 <code>gamescope -w 3840 -h 2160 --</code> as command prefix, to downscale from 4k. If you use it in Lutris, set <code>3840x2160</code> as resolution. === Setup === Run <code>sudo setcap 'CAP_SYS_NICE=eip' `whic...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
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.
[https://github.com/Plagman/gamescope 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 <code>gamescope -w 3840 -h 2160 --</code> as command prefix, to downscale from 4k. If you use it in Lutris, set <code>3840x2160</code> as resolution.
You can use Gamescope for downsampling. For example, use <code>gamescope -f -w 3840 -h 2160 --</code> as command prefix, to downscale from 4k. The same can be achieved in Lutris, by enabling Gamescope, and setting <code>3840x2160</code> as resolution.
 
You can also use Gamescope for upsampling with [[FSR - FidelityFX Super Resolution|FSR]], by specifying the <code>-U</code> option, for example with <code>gamescope -U --fsr-sharpness 4 --</code> 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 <code>gamescope --help</code> in the [[terminal]] to see all options.


=== Setup ===
=== Setup ===
Run <code>sudo setcap 'CAP_SYS_NICE=eip' `which gamescope`</code> to get a smooth gaming experience.
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 <desired_framerate> --immediate-flips</code>
 
Replace <code><desired_framerate></code> with a number, for example <code>144</code>.
 
== References and notes ==

Latest revision as of 17:40, 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 <desired_framerate> --immediate-flips

Replace <desired_framerate> with a number, for example 144.

References and notes