Using Gamescope and Lutris could be a viable solution, but let's break down how they might help and what steps to take:
1. Gamescope (for X11 Compatibility)
Gamescope is a compatibility layer that runs games in a virtual X11 session (even on Wayland). This can bypass some of the scaling/compatibility issues that arise in pure Wayland environments. Here's how to use it:
Steps to Use Gamescope:
-
Install Gamescope:
-
Launch CS2 via Gamescope:
-
Set Resolution in Gamescope:
-
Disable Wayland in Gamescope (if needed):
- Gamescope automatically uses X11, so it avoids Wayland's scaling issues. This should resolve the grid-like artifacts.
Why This Works:
- Gamescope runs the game in X11, which handles scaling more predictably than Wayland. It also allows you to bypass compositor scaling entirely by forcing the game to run at a resolution that matches your display.
2. Lutris (for Wine/Proton Management)
Lutris is a game launcher that simplifies running Windows games on Linux using Wine or Proton. While it doesn't directly fix scaling, it gives you more control over the environment.
Steps to Use Lutris:
-
Install Lutris:
- On Debian/Ubuntu:
sudo apt install lutris
- On Arch/Manjaro:
sudo pacman -S lutris
-
Add CS2 to Lutris:
- Open Lutris and add CS2 via Steam Play (Proton) or manually install it.
- Use Proton 8.0+ (the latest stable version) for better compatibility.
-
Configure Wine Settings:
- In Lutris, go to the game's settings and adjust the Wine version or DXVK settings.
- If using Proton, try enabling DXVK (DirectX to Vulkan) for smoother rendering.
-
Set Resolution via Lutris:
- In the game's launch options, set the resolution explicitly (e.g.,
--resolution 1920x1080).
Why This Helps:
- Lutris provides granular control over Wine/Proton settings, which can improve compatibility and scaling behavior.
- If you're using Proton, ensure it's up to date and configured for your GPU (e.g., NVIDIA drivers with Vulkan support).
Combined Approach: Gamescope + Lutris
If you're using Lutris to run CS2 via Proton, you can combine it with Gamescope to force X11 mode:
gamescope --fullscreen --resolution 1920x1080 -- lutris --run "cs2"
This ensures the game runs in X11 (via Gamescope) while leveraging Lutris for Proton/Wine management.
Additional Tips
- Avoid Fractional Scaling: If you must use Wayland, ensure your desktop environment uses integer scaling (e.g., 100%, 200%) instead of fractional scaling (e.g., 1.5x).
- Use Native Resolution: Run the game at your monitor's native resolution (e.g., 1920x1080 for a 1080p display) to avoid upscaling artifacts.
- Check GPU Drivers: Ensure your GPU drivers (NVIDIA, AMD, or Intel) are up to date and support Vulkan/DXVK.
Final Recommendation
- Prioritize Gamescope: If scaling issues persist on Wayland, use Gamescope to run the game in X11 mode with a native resolution.
- Lutris for Control: Use Lutris to manage Proton/Wine settings for better compatibility.
- Avoid Fractional Scaling: Always use integer scaling or native resolution to prevent artifacts.
Let me know if you need help setting up specific commands or configurations!