That's an excellent idea! Both gamescope and lutris can be very effective solutions for this kind of problem, especially when dealing with Wayland and custom display configurations for games.
Here's why they are good options and how you might use them:
-
Gamescope:
-
Lutris:
- What it is: Lutris is an open-source game manager that helps you install and manage games from various sources (Steam, GOG, Epic Games Store, native installers, etc.) using different runners (like Wine, Proton, native executables).
- Why it helps: While you can launch CS2 via
gamescope from the command line or by adding the gamescope command directly to Steam's launch options, Lutris provides a convenient graphical interface to configure wrappers like Gamescope. Instead of remembering the command, you can set up CS2 in Lutris and tell Lutris to use gamescope as a "system options" or "wrapper" command.
- How to use it:
Putting it together:
Using gamescope is the core technical solution for the scaling artifacts. Using lutris is a convenient way to manage and launch CS2 with the necessary gamescope parameters without manually typing them or relying solely on Steam's potentially clunky launch option field for complex commands.
Steps:
- Install
gamescope: Install the gamescope package from your distribution's repositories.
- Install
lutris: Install the lutris package.
- Add CS2 to Lutris: If not detected, add it manually as a Steam game.
- Configure CS2 in Lutris: Go to the game's configuration.
- Add the
gamescope wrapper: Find the option to add arguments or a prefix command and add the gamescope command, specifying your desired game resolution (-w, -h) and your native monitor resolution (-W, -H). Ensure the -- separator is present before the placeholder for the actual game command (%command% or similar). Add other CS2 launch options you use (like -novid) before the gamescope command or within the arguments after the -- separator, depending on how Lutris processes the command line.
- Launch CS2 from Lutris.
This approach isolates the scaling to Gamescope, which is often better equipped to handle it without introducing the grid-like artifacts you're seeing from your desktop compositor's scaling. It's a very standard and recommended method for improving gaming on Wayland, especially with resolution scaling.