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.33k stars 2.18k forks source link

[Bug] Namco Museum Battle Collection: Major audio issues with cracking and skipping #15485

Open Goldenfreddy0703 opened 2 years ago

Goldenfreddy0703 commented 2 years ago

Game or games this happens in

Namco Museum Battle Collection

What area of the game / PPSSPP

When I play the Original Games, the audio starts to crackle which causes issues.

Here is a screenshot of the Original Games. Original

I do not have a savedata for this because this is effected to multiple devices.

What should happen

The Original Games should not have Major audio issues with cracking and skipping. It Should have Normal audio like the Arrangement Games. This could be due to Simulating Block Transfer Effects but i doubt it. It is an important feature that is needed to run the Original Games. Simulating Block Transfer Effects

Logs

I had trouble uploading a debug log but i hope this will help. PPSSPP Log.txt

Platform

Windows

Mobile phone model or graphics card

Nvidia GeForce GTX 1660 Ti with Max-Q Design

PPSSPP version affected

v1.12.3

Last working version

None

Graphics backend (3D API)

Direct3D 11

Checklist

anr2me commented 2 years ago

Your logs file didn't show much info as it only logs Error message, you should run the Debug Log.bat file to get more detailed logs.

Goldenfreddy0703 commented 2 years ago

Should i use the Lastest Git Build and run the Debug Log.bat?

anr2me commented 2 years ago

Should i use the Lastest Git Build and run the Debug Log.bat?

Yes, preferably getting the logs from the latest dev build.

Goldenfreddy0703 commented 2 years ago

Ok i will do that, i am testing it now.

Goldenfreddy0703 commented 2 years ago

Hey so apparently, i have a log but i can't upload it, github is say not included in list

anr2me commented 2 years ago

Hey so apparently, i have a log but i can't upload it, github is say not included in list

zip the log file first

Goldenfreddy0703 commented 2 years ago

Thank you, sorry that took forever ppsspplog.zip

hrydgard commented 2 years ago

Thanks for the log, not sure it's gonna help too much in this case though :/ Needs investigation for sure, I'm guessing these games do their own mixing and there's probably some obscure audio buffering issue that they run into, that normal games don't because they use the PSP's native mixer API.

Goldenfreddy0703 commented 2 years ago

True, i always thought it could be the Simulating Block Transfer Effects cause the original games need that but im not too sure, it could be due to audio with that function but im not fully sure. One thing i herd from a thread is maybe changed the audio format which could possibly help but im not sure if that would work

Goldenfreddy0703 commented 2 years ago

Hey, I was looking at other issues and pr, would this issue relate to this one by anychance? https://github.com/hrydgard/ppsspp/issues/5213

unknownbrackets commented 2 years ago

You mentioned trying other devices, more detail on that might help.

Some specific things to try:

If there's no spikes, no logged frame drops, it's always 100%, and changing the backends does nothing - then this must be an emulation issue in audio mixing. But if any of these help, it may be some sort of performance issue.

-[Unknown]

Goldenfreddy0703 commented 2 years ago

It's got to be an emulation issue at this point because I've tried it on multiple devices such as android tv, windows, Linux, my android phone, through emulated devices, ect.

unknownbrackets commented 2 years ago

Well, it could be a performance problem (I mean, still a bug in PPSSPP) that's happening on all these devices. My questions are designed to ferret out a performance problem.

If it's happening on multiple types of devices like that, I wouldn't bother with the graphics backends or audio backends, but the other things are still useful.

-[Unknown]

Goldenfreddy0703 commented 2 years ago

Your right, I will try some of the specifics and get you a log for it so it could help more.

Goldenfreddy0703 commented 2 years ago

Hey so i tried all the specific things and i think i got you an infolog to help. Im not too sure if this is an info log but here is a log from the latest branch. Here is also another debug log to help too. InfoLog InfoLog.zip DebugLog DebugLog.zip

Goldenfreddy0703 commented 2 years ago

Hey so i just wanted to come back and check on this, did this information help you guys out on this bug?

Goldenfreddy0703 commented 2 years ago

Hey so its been a few days and i wanted to see how this is going, any new information on this by anychance?

anr2me commented 2 years ago

I tried DigDug (got 60/60 FPS) and the sound aren't much different than what this video had (using JPCSP i think, may be they had similar issue to PPSSPP) https://www.youtube.com/watch?v=80c_3ju2txM It should probably sounds like this on PSP https://www.youtube.com/watch?v=Zeqq8tP3sEI

While the sound on a PlayStation version is a lot better based on this video https://youtu.be/yK48czSNEgs?t=1195

And also, DigDug II (original) sounds much better (i didn't heard any noises/crackling sound) than DigDug (original) on PPSSPP, as long you can get full speed 60/60 FPS

Goldenfreddy0703 commented 2 years ago

Have you tried Pacman or Galaga original?

Goldenfreddy0703 commented 2 years ago

Hey guys, i know its been almost a month and i understand if you guys are busy with other issues but any information on this one by anychance?

unknownbrackets commented 2 years ago

Well, unfortunately the log didn't help outside iirc showing a couple drops from using software rendering. You didn't mention any of those settings having an impact, so it probably is some uncommon api usage that'll need to be investigated. I just double checked though and it is using sceSas (although mono atrac3+), so doesn't look too crazy.

Maybe it's doing something evil mucking with the actual Sas structs and double buffering. Hopefully not.

-[Unknown]

Goldenfreddy0703 commented 2 years ago

Awww thanks for telling me, I wish there was a way to fix the audio for the old games. Idk why audio is messed up, slow, fast, it could be just rendering but again, not too sure

Thank you tho.

UnveilingCoyote commented 1 year ago

When will this be fixed?

Goldenfreddy0703 commented 1 year ago

I was wondering about this as well, glad this is on the v1.17.0 milestone tho. Thank you

UnveilingCoyote commented 1 year ago

Update on this?

UnveilingCoyote commented 10 months ago

Will this be fixed anytime soon?

Goldenfreddy0703 commented 10 months ago

Hey there, been awhile sense I responded to this issue but is ppsspp already past the 1.17.0 milestone? Its probably been about 2 years and im surprised this is still an ongoing issue.

hrydgard commented 10 months ago

1.17 is the upcoming milestone, we're not past it.

And please don't post just for updates. I have looked at it a couple of times and haven't been able to figure it out. I will look again but no guarantees I'll solve it before the 1.17 release.

Feel free to help debug it.

Goldenfreddy0703 commented 10 months ago

Hey sure and it's totally fine. I think awhile back, it had something to do with the audio format but I'm not too sure. Maybe I will look into this more and help with debugging soon.

Thank you

sum2012 commented 9 months ago

@Goldenfreddy0703 Can you record the cracking and skipping (include graphic and sound) into https://www.youtube.com (and share the link with us) ?

UnveilingCoyote commented 9 months ago

Here is the slowdown

Uploading Screen_Recording_20240117_173022_PPSSPP.mp4…

UnveilingCoyote commented 9 months ago

https://github.com/hrydgard/ppsspp/assets/115852613/f3d1ce22-db85-4510-83ff-3ba0b8f78065

Goldenfreddy0703 commented 9 months ago

Hey @sum2012 it's been awhile sense I used ppsspp but I can try to get on my computer later and see if I can record it for you. Thank you for pinging me.

sum2012 commented 9 months ago

@UnveilingCoyote edit reload the page okay now

UnveilingCoyote commented 8 months ago

Update on this?

sum2012 commented 8 months ago

Sorry later reply ,I don't think that the sound is cracking and skipping