-
Notifications
You must be signed in to change notification settings - Fork 72
GameScope
(Project Page: GameScope)
Gamescope is a tool from Valve that allows for games to run in an isolated Xwayland instance, and supports AMD, Intel and Nvidia GPUs. Relatively up-to-date GPU drivers are required for Gamescope to work correctly:
- AMD: Mesa 20.3 or above
- Intel: Mesa 21.2 or above
- Nvidia: NVIDIA 515.43.04 or above, and the
nvidia-drm.modeset=1
kernel parameter
(in Game Menu and Game Config)
Set USEGAMESCOPE
to 1 to automatically start GameScope when the game starts, either per game or globally. The command line arguments used (GAMESCOPE_ARGS
) can be configured both per game and globally as well. Some Gamescope features exposed in SteamTinkerLaunch are very new and may require a version of Gamescope built from the latest Git release.
GameScope can be easily configured (and enabled) with the built in GameScope Gui, which can be found as Extra Button in the Main Menu
Gamescope has various useful features:
- Spoofing game resolutions to force running at higher/lower/exotic resolutions (such as Ultrawide)
- Focused and Unfocused Framerate Limits
- Upscaling using AMD FidelityFX SuperResolution 1.0 (FSR) or NVIDIA Image Scaling v1.0.2 (NIS) for Wine/Proton and native Linux games
There are other, more technical options that can be passed to Gamescope manually. In the Game Menu the Gamescope arguments can be manually adjusted. Refer to the Gamescope help screen by running gamescope --help
from a Terminal for specifics on these options.
Using the Game Internal Resolution box, the resolution that the game will run at can be increased. This can be any reasonable resolution including (and especially usefully) one higher than your monitor's resolution.
On Wayland with a scaled display, Gamescope can be used to force games to see your monitor's native resolution, f.e., on a 4k display with 150% scaling, games will report a maximum resolution of 2560x1440
. Gamescope can be used to force games to run at 3840x2160
.
The actual game window size can be set with the Game Show Resolution box. The default game window size and game internal resolution size is 1280x720
. The effect has virtually no effect when running fullscreen.
Gamescope allows for framerate limiting when a game window is focused and unfocused. This can be any reasonable value, with the default being unlimited.
This option may conflict with and cause stuttering on games where Vsync is enabled, or games that have their own framerate limit option. Disabling these and letting Gamescope manage the framerate may help eliminate stutter, or vice versa, depending on the game.
On Wayland with Vsync enabled desktop-wide (such as on KDE Plasma Wayland), you can safely disable vsync without causing tearing.
In the context of Gamescope, upscaling is running a game with a window size larger than the internal resolution. This could be running a game fullscreen on a 1080p display with an internal resolution set to the default of 720p, which can have a significantly lower performance overhead at the cost of visual fidelity. Gamescope gives you the ability to use various filters to mitigate the loss of visual quality, making a game look better when running at a lower internal resolution on a higher resolution window.
With the exception of NVIDIA Image Scaling (NIS), the active filter used is dependent on the order that they are passed, meaning the last filter passed will get priority and other filters will be inactive. In the case of SteamTinkerLaunch, checking Integer Scaling, Nearest Neighbor and FSR will result in only FSR being used. Toggling FSR off after launch in this case will result in Nearest Neighbor taking priority, and that being disabled will result in Integer Scaling being used. The last filter in will be the only one active, so there is really no reason to have more than one of these options selected.
NVIDIA Image Scaling has different and seemingly undocumented behaviour than listed above. It can be applied in addition to existing filters such as Integer Scaling or Nearest Neighbor so that they can be used together. Keep in mind that Integer Scaling and Nearest Neighbor will still overwrite each other, so you can only use one of these effects with NIS. However, NIS will overwrite FSR if it is in use. This means if you try to use NIS and FSR together, only the last one passed to Gamescope will be used and disabling it with a keyboard shortcut will not fall back to the other. In SteamTinkerLaunch's case, if you enable NIS and FSR, NIS will always be passed last. Disabling it using the Super+Y
shortcut at runtime will not fall back to using FSR and will instead overwrite it. The order of other filters will be preserved however, so in the case of enabling Integer Scaling, Nearest Neighbor, and NIS, and then enabling FSR, disabling FSR will fall back on Nearest Neighbor, and disabling Nearest Neighbor will fall back on Integer Scaling.
The default sharpness value for NIS and FSR is 2. This can be adjusted from the Gamescope menu using the "Upscaler Sharpness" setting, accepting values between 0 (maximum sharpening) and 20 (minimum sharpening). It can be increased with Super+I
and decreased with Super+O
when a game using Gamescope is running. If no upscaler method is checked, the Upscaler Sharpness value will default back to 2.
Gamescope offers various methods of improving visual quality when upscaling using filters:
This filter may be good for pixel art games running at higher internal resolutions, as it can reduce some blur effects. This can be toggled with the Integer Scaling box in the Gamescope UI, but cannot be toggled after launch.
A basic, low-overhead method of upscaling. It is good for most games that don't benefit from Integer Scaling. It can be toggled after launch with the Super+N
shortcut.
An open-source upscaling technique developed by AMD for better upscaling quality. While keeping relatively low performance overhead, depending on hardware, the sharpness value and base resolution (for Gamescope, the internal game resolution), there may be a noticeable performance hit. Running a game with maximum sharpness, an internal resolution of 720p and upscaling to 1440p can incur some performance cost and latency. FSR can be toggled on and off in-game with Super+U
. Note that enabling it will overwrite NIS.
An open source upscaling technique developed by Nvidia as a cross-vendor, low-overhead alternative to their proprietary DLSS solution, meaning it works on AMD and Intel GPUs as well as Nvidia GPUs. NIS serves a similar purpose to FSR 1.0. It takes the same sharpness values as FSR and may have similar performance impacts when scaling up from much lower resolutions to much higher resolutions. NIS can be toggled on and off in-game with Super+Y
. Note that enabling it will overwrite FSR.
Steam integration is currently used to workaround a Gamescope+Proton 7.0 bug (Plagman/gamescope#438, Plagman/gamescope#420) preventing mouse and controller input. According to Plagman/gamescope#388, when asking what the option is meant to be used for:
You don't right now. There is no version of Steam available publicly that interfaces with the stuff for it.
With versions of Proton older than 7.0 or with Native Linux games, the bug should not be present.
Quick Links
- Changelog
- Installation
- Usage
- Main Menu
- Global Menu
- Tray Icon
- Modding
- Platform-Specific Documentation
- Tweaks
- Utilities
- Advanced