hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.39k stars 2.19k forks source link

[Flatpak Only] Crash when using Wayland and Vulkan(OpenGL not affected). #18417

Open ghost opened 1 year ago

ghost commented 1 year ago

Game or games this happens in

None

What area of the game / PPSSPP

When you start PPSSPP under Wayland with OpenGL everything works fine but sometimes the Vulkan backend is greyed out, you quit and restart PPSSPP and it's here again but when you select it and restart PPSSPP it crashes...

What should happen

No crash when using Wayland + Vulkan.

Logs

No response

Platform

Linux / BSD

Mobile phone model or graphics card

[Dual GPU]RTX 4060 Laptop GPU/Intel HD Graphics for 12th Gen CPU

PPSSPP version affected

v1.16.6

Last working version

No response

Graphics backend (3D API)

Vulkan

Checklist

thesourcehim commented 11 months ago

It's likely due to nvidia driver currently does not fully support offloading with vulkan for native wayland apps. Driver 545.29.06 introduces such support but it's not full yet, some apps work, some don't. Try switching adapter to intel one, for me ppsspp works fine with it. Another workaround is to set SDL_VIDEODRIVER=x11 environment variable.

SeongGino commented 1 month ago

Nvidia supports Wayland+Vulkan just fine now, so it can't be driver issues (it works fine in many other cases on Wayland).

This isn't only with the Flatpak, as I'm using the package as provided from Arch's extra repo. It seems to be that SDL's default x11 video driver is the culprit; forcing PPSSPP to run with SDL_VIDEODRIVER=wayland fixes it on Wayland. 2024_10-20 135418

In fairness, this might be either an SDL or Wayland bug, as the opposite is true in trzy/Supermodel#121's case