this post was submitted on 13 Jun 2023
7 points (100.0% liked)

Linux

50208 readers
1967 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
 

First of all, I know xWayland already does this when in a Wayland session but RPCS3 (PS3 emulator) runs disgustingly bad inside Wayland on my PC, and during an Xorg session the same emulator runs perfectly, and it's not a FPS issue or framerate, it is a problem that any game is simply unplayable because it suddenly gives stutters that do not exist in Xorg.

KDE Plasma honestly feels extremely buggy and slow on Xorg and so I don't want to use Xorg, I would like to use Wayland and not have to log into an Xorg session every time I want to use RPCS3.

Now, I am using KDE Plasma 5.27 with Wayland and using Nvidia proprietary drivers (515).

(If Linux4Noobs existed on Lemmy I would have posted this there)

all 18 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 2 years ago (1 children)

QT_QPA_PLATFORM=xcb is the environment variable you're looking for, got that from https://wiki.archlinux.org/title/wayland#GUI_libraries

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

In fact you are right, although unfortunately it didn't help, and I have a doubt, how can you find so quickly the information of commands or specific variables that solve something?

I mean, of course, before asking in a community I try to investigate on my own but many times I don't find anything useful and that's why I have to ask.

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

I have had to force xwayland a number of times, so, I was familiar with it beforehand, it took me forever to find the first time!

In this case, you're going to want to post a bug report to the rpcs3 issue tracker, this sounds like something they need to resolve on their end.

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

I don't see anyway around XWayland. You could run X in a separate VT but that wouldn't be "in" Wayland and while you wouldn't need to login, you'd still need to spawn it.

You could try running RPCS3 in gamescope as a workaround, but it's probably Nvidia + Wayland that's the issue.

EDIT: Have you tried running RPCS3 with both Wayland and XWayland? RPCS3 supports native Wayland as well so if it's an XWayland only issue then that should fix it. Conversely if native Wayland is actually what is breaking it you could try:

QT_QPA_PLATFORM=xcb rpcs3

which would force XWayland. Presumably it's QT_QPA_PLATFORM=wayland for wayland support, although it's the default on my system.

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

I tried it but it doesn't work, even though the game starts I just get a blank screen, thanks anyway.

Fuck Nvidia.

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

Which distro?

I would suggest filling a bug report to RPCS3 with all the system details you can

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

Try with: env -u WAYLAND_DISPLAY appname

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

PS3 emulator is so niche app that I recommend you to ask its community or more ratherly devs.

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

Good point, gonna try that.

[–] StefanT 1 points 2 years ago

The stutters are a problem of the Nvidia driver. Been there (Geforce 1070 with those drivers). Now with an AMD card it does not happen. But heads up, what I have read it gets much better with newer Nvidia driver versions.

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

At some point no matter what you do, whatever was rendered in xorg will have to be converted to a Wayland surface to show it on screen. Xwayland just does that with internal x components instead of converting a whole canvas, so if anything it should be faster. I don't think there is a way for you to decide this to happen, but I think there is a bug to raise with both the xwayland team (because it's not working properly and they should be able to tell quite easily why) and the prcs3 team (because they can migrate to Wayland in not that much time, it's not one-click but it should be quite easy for talented devs like this)

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

In fact checking their Github it seems that it is an open issue from January 2022 that has not received any attention.

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

That is unfortunate. During the Wayland transition period, sadly this is bound to happen though I have to admit xwayland is otherwise really powerful and has not caused me many issues.

I'd just put a comment on this issue asking for status. Debian 12 recently released and it uses Wayland by default now so the issue is bound to happen more and more.

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

Wow, Debian 12 using Wayland by default? I didn't know, it's about time!

And thanks for asking the status of the issue, I'll check back later for an answer.

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

Maybe you can try running the application with QT_QPA_PLATFORM=xcb. I have to do so for Webex for my work, since it won't run properly on Wayland. You can edit the application's shortcut in KDE and set environment variables in the Application tab.

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

I tried but still I have the same problem... Probably Nvidia related.

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

Also try unsetting GDK_BACKEND