batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.96k stars 511 forks source link

V39/V40 PPSSPP is slower than previous versions #11618

Open alithew opened 5 months ago

alithew commented 5 months ago

Batocera build version

40-dev-e8927adbe1 2024/05/01

Your architecture

X86_64

Your Graphic Processor Unit(s) (GPU)

Intel UHD graphics

Issue description

Game reference is Final Fantasy III, but behaviour is the same on other games. Cpu is Celeron N4500 on Acer Spin 1 Since v39, PPSSPP is a lot slower than v38 with exactly the same settings. In fact, it start normally at 60fps (with render duplicate frames to 60hz), and after a while it suddenly slowdown to 40fps and stay like that. In V38 it's a constant 60fps

Detailed reproduction steps

Just changed some ppsspp options and resolution, same setting on v38 and v40

Details of any attempts to fix this yourself

  1. Tried several usb key, v39 and different v40beta
  2. Fixed maximum resolution to 1920x1080 as recommended
  3. Rewind option is OFF
  4. Tried same ppsspp version (1.17.1) on kde neon on the same computer, with same settings and there is no slowdowns

Details of any modifications you have made to Batocera.

None

Logs and data

V38 - batocera-support-20240501123147.tar.gz V40Beta - batocera-support-20240501123615.tar.gz

joinski1 commented 5 months ago
2. Fixed maximum resolution to 1920x1080 as recommended

What exactly did you set under System Settings, Developer Frontend Options, Video Mode?

alithew commented 5 months ago

I set Maximum 1920x1080, but already tried 1920x1080 + different refresh rates between 59.93 to 60.06 and slowdowns were there. With Auto setting, it was even worst

joinski1 commented 5 months ago

I set Maximum 1920x1080, but already tried 1920x1080 + different refresh rates between 59.93 to 60.06 and slowdowns were there. With Auto setting, it was even worst

You should definitely select a Video Mode with 60Hz (and a resolution like 1080p or even 720p). Something that would also be useful to narrow down the problem would be if you could test other hardware (other GPU/iGPU) and another TV/monitor (at best a 1080p model and not 4k).

alithew commented 5 months ago

You should definitely select a Video Mode with 60Hz (and a resolution like 1080p or even 720p).

I have only 59.93hz, 59.96, 59.97, 60.01 and 60.06 for 1920x1080, all tested with slowdowns. Did the same tests on v38, with all refresh rate and no slowdowns.

Something that would also be useful to narrow down the problem would be if you could test other hardware (other GPU/iGPU) and another TV/monitor (at best a 1080p model and not 4k).

Did some tests already on 2 other computers (ryzen 5 5800h with nvidia rtx 3060 and Intel i5 1335U with intel graphics) , but they were too powerfull to see a difference (or not concerned by those slowdowns). In fact I started my tests since v39, so I have tried a lot of thing, but I will do some complementary ones on 3 other computers.

EDIT: Sorry, reading again I understood... I can't change GPU because it's a laptop, however I would try with an external screen to see if there is any change

dmanlfc commented 4 months ago

@alithew KDE Neon is not a like for like comparison. Is uses LTS packages. I suspect a regression for sure, just where. Can you try a more modern distribution like Manjaro ? Effectively to get the same version of Mesa and a modern kernel.

alithew commented 4 months ago

Sure I will. For the moment I have not been able to reproduce the problem on another computer, although I have tested 7 others.

So I have tried Manjaro and EndeavourOS, ppsspp works perfectly on both of them, I don't know what to test anymore

Ah, something probably important, there is slowdowns only with Vulkan ! But there is tearing problem with opengl even with vsync on.

dmanlfc commented 4 months ago

I don't see a slow down in my quick testing with my 12th Gen intel PC but I didn't set Vulkan. Are you saying you see a Vulkan regression just in Batocera or in Manjaro also?

alithew commented 4 months ago

This is just in Batocera. I am not surprised you could not reproduce this, as I said, on 8 computer tested only the one with celeron 4500 and intel hd graphics have slowdowns

I put a video showing what's happening. You could see that, even when doing nothing, there is slowdowns. https://github.com/batocera-linux/batocera.linux/assets/113465827/a273412e-bca9-4fa1-9380-e39e791a0442