Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uneven scaling at native resolution on Wayland backend #1622

Open
3 of 6 tasks
bandithedoge opened this issue Nov 11, 2024 · 4 comments
Open
3 of 6 tasks

Uneven scaling at native resolution on Wayland backend #1622

bandithedoge opened this issue Nov 11, 2024 · 4 comments

Comments

@bandithedoge
Copy link

bandithedoge commented Nov 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

When running an app at native resolution, a small gap around the middle of the screen resembling a scaling artifact can be noticed. This issue appears consistently with any combination of game, compositor, nested resolution and scaling settings on both the latest release available and latest commit. It does not appear with the SDL backend.

Steps To Reproduce

No response

Hardware information

- Distro: NixOS 24.11.20241029.30c9efe
- CPU: Intel Core i7-4790
- GPU: AMD Radeon Pro W5500
- Driver Version: Mesa 24.3.0-devel

Software information

- Desktop environment: Hyprland
- Session type: wayland
- Gamescope version: `gamescope version 3.15.13 (gcc 13.3.0)`
- Gamescope launch command(s): `gamescope -f -w 1920 -h 1080 -W 1920 -H 1080 --mangoapp`

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

2024-11-11_19:03:19
This is what it looks like on a Wayland compositor that uses nearest neighbor scaling for windows (Sway). Take a close look at the cursor image and the letter "g" in "Load game".

2024-11-11_19:02:30
Things are blurry on compositors that use filtering for scaled windows such as Hyprland. This is best seen with things like Mangohud, notice how the text in the middle part looks smudged compared to the top.

2024-11-11_19:08:27
This is more obvious on certain 3D objects - FXAA is turned on in the game, yet there is noticeable aliasing along the roof of this building.

@ColinKinloch
Copy link

ColinKinloch commented Nov 23, 2024

Is your desktop scaled?
Are you able to check whether #1630 fixes your issue? (or makes it worse)

@bandithedoge
Copy link
Author

None of my displays are scaled and the issue persists with #1630.

@kitten
Copy link

kitten commented Nov 29, 2024

Could this be related to the following issues/PRs? #1494 and #1493

I've noticed blurriness and smudging as well, although I'm running on native resolutions and although I'm building via Nix on GCC. Testing out a build without -ffast-math seems to resolve this.

@bandithedoge
Copy link
Author

I just set up a simple package override in my NixOS configuration that adds -fno-fast-math and it appears to have fixed this issue.

If any other Nix users are looking for a quick workaround:

programs.gamescope = {
  enable = true;
  package = pkgs.gamescope.overrideAttrs (_: {
    NIX_CFLAGS_COMPILE = ["-fno-fast-math"];
  });
};

It's safe to say that #1494 will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants