this post was submitted on 28 Jun 2023
27 points (93.5% liked)

Linux

48690 readers
764 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

What's the current landscape like for gaming with KDE Wayland? I've heard that recently VSync can be disabled and that Wine has better support for Wayland nowadays.

Whats your experience like with this setup?

top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 2 years ago (2 children)

If you're playing competitive FPS games then Wayland still isn't there, use X11 instead. Outside of it, I'd say it's worth a shot, it goes especially well with FreeSync monitors.

Your experience will vary from your GPU vendor too. I have an AMD card so Wayland is a smooth experience for me, if you're on Nvidia then you will most likely face issues.

I've noticed a bug where in GPU bound scenarios entire desktop is lagging. This issue happens for me on Wayland but not X11. I don't know what's causing it, could be my graphics card running out of its 4 GB of VRAM.

TL;DR give it a try, you can easily switch between X11 and Wayland.

[–] marmalade 2 points 2 years ago* (last edited 2 years ago) (1 children)

I would say the exact opposite if you're playing competitive FPS. Xorg tears and is super jittery like a motherfucker. Wayland is the only thing that properly drives my 240hz monitor.

[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

Weird, everything is fine on my end, however my screen is a bit slower, at 144 Hz. For games which run below my refresh rate I use Wayland + VRR, but for games which run well above it I use X11 and disabled compositing.

Some examples on Wayland: Hunt: Showdown, Battlefield 4, Grounded, Genshin. On X11: CS:GO, Minecraft, Ultrakill

[–] priapus 1 points 2 years ago* (last edited 2 years ago) (1 children)

Wayland with VRR should give you very comparable latency to X11, but if you have a monitor without support for it then X11 is definitely better.

[–] [email protected] 1 points 2 years ago (1 children)

Do you know what happens when games run above your refresh rate? Is VRR still engaged there or does it fall back to Wayland's FIFO Vsync?

[–] priapus 1 points 2 years ago

Afaik, it will fall back to FIFO. Fortunately, if you're using a high refresh rate monitor, by the time you reach this point, FIFO will be adding a very small amount of latency. I generally choose to limit my games to my refresh rate when making use of VRR, as it leads to a good combination of low and consistent latency, rather than the spikes you will face when playing with it unlocked.

[–] [email protected] 4 points 2 years ago

It works pretty well. There's some issues with mouse focus capture on multiple monitors in Wayland (both KDE and GNOME), but using gamescope fixes them. I've been PC gaming exclusively on KDE/Gnome Wayland for the past couple of years and haven't had any issues besides the weird mouse focus stuff.

[–] [email protected] 3 points 2 years ago (1 children)

I really struggled with it. I couldn't game in 4K because of Wayland's scaling. It was either actually use my gaming monitor for its intended purpose or have the rest of my GUI be too small to use. (The lack of FreeSync Pro support was also a major downer, so to get the most out of my monitor, I have to use Windows.)

This was about a month ago, so I am not fully up-to-date.

[–] [email protected] 3 points 2 years ago

In System Settings under Display Configuration, set "Legacy Applications (X11): Apply scaling themselves". That should allow you to actually use 4k resolution in games.

[–] [email protected] 2 points 2 years ago

I’ve heard that recently VSync can be disabled

You can set an option for the compositor ("Reduce latency by allowing screen tearing artifacts in fullscreen windows"), however as far as I know, standard wine including staging has no real Wayland support right now. Everything up to this point is just laying the groundwork and there's no switch or anything to enable the functionality AFAIK. The merge request that enables tearing for xwayland was just merged last week.

[–] [email protected] 2 points 2 years ago

I've been using it for a long time now, gaming hasn't really been an issue at all. It's mostly graphical artifacts with some applications/the compositor at this point when using non-integer scaling and potentially also related to my multi-monitor configuration, such as lines that shouldn't be on screen, pixel scaling artifacts, and plasmashell rendering the desktop for the wrong monitor scale after the screen locks and turns off, but there's been nothing that completely breaks it anymore for a while now.

[–] [email protected] 1 points 2 years ago

Wayland gaming is great, especially on KDE, you can go into display settings/compositor and switch fro smoother animation to lower latency for a latency that's even lower than X11, without any of the X11 issues.

[–] [email protected] 1 points 2 years ago

@av_conk As far as I can tell from trying it myself, and from watching people struggle with it, wayland is in no way yet ready for the gaming scene. For some things it's somewhat usable but overall, I advise anyone with questions to stick with X for now.

[–] [email protected] 0 points 2 years ago (1 children)

I play exclusively on kde wayland and I am really happy with it, I don’t have to mess with anything and everything works. The only thing that comes to mind is that Steam isn’t wayland native so you have to set an environment variable to set scaling on hidpi screens. Other than that everything works really fine!

[–] [email protected] 0 points 2 years ago (1 children)

How do you set that environment variable for Steam?

[–] [email protected] 0 points 1 year ago (1 children)

I set STEAM_FORCE_DESKTOPUI_SCALING=2.0 in /etc/environment

[–] [email protected] -1 points 1 year ago

Is that within a Steam configuration file?

load more comments
view more: next ›