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.02k stars 2.15k forks source link

Metal Gear Acid 2 Cutscene Slowdown #10805

Open TideGear opened 6 years ago

TideGear commented 6 years ago

In Metal Gear Acid 2, during the stage 04 intro cutscene, some portions of the cutscene lose a lot of frames for seemingly no reason. There may be later cutscenes that do this too. I'm playing with the latest GIT (v1.5.4-772-gf39897cfa), as this cutscene issue was much more recurring in the stable version on the Google Play Store. I'm playing on a Galaxy S9+, and switching between Vulkan and OpenGL has no discernable effect. I'm using default settings mostly, with the only significant change being I'm rendering and displaying in 1 x PSP. Gameplay has been unaffected so far, but I'll report back if that changes.

Savestate during lag: ULUS10077_1.00_0.zip

Screenshot during lag: ulus10077_1 00_0

unknownbrackets commented 6 years ago

Can you try to find the first git build with this problem? It also helps to know the last git build that didn't have this problem.

Don't worry, you don't have to test every version to figure this out. The trick is to go by halves. So if you want to find where it broke among 1000 git builds, start with build 500. If it doesn't work, go down by half - otherwise, go up by half. With 10 tries, you can find it among 1000 builds.

For people without the game, or not experiencing the problem... they're stuck staring at each build one by one, trying to guess the problem. That's like finding a needle in a haystack sometimes. You're the hero that can cut down all the small fry in a few swings of a sword.

-[Unknown]

TideGear commented 6 years ago

The problem is much worse in the Play Store build actually. It happens in just about every cutscene in the Play Store build. The git builds have it almost fixed, but this specific savestate is the first time it happens in the game in both v1.5.4-772-gf39897cfa and v1.5.4-850-g93bf86612 (the newest, which I just tried).

weihuoya commented 6 years ago

this cutescene has more than thousand GE_CMD_SPLINEs, really slow

unknownbrackets commented 6 years ago

Aha, thanks @weihuoya.

The best / fastest case should be Vulkan with hardware tessellation.

-[Unknown]

weihuoya commented 6 years ago

spline quality lower help a lot, tessellation make no difference

TideGear commented 6 years ago

Thanks a bunch, weihuoya! I can confirm lowering the splines from high to medium got me back to the max 30 fps! Which is closest to the original PSP splines quality? Medium?

Any insight into my other MGA2 issue, weihuoya? https://github.com/hrydgard/ppsspp/issues/10814