Mazamars312 / openfpga-pcengine-cd

The openFPGA PCECD Core
GNU General Public License v2.0
52 stars 4 forks source link

Audio stuttering in games #10

Open thehughhefner opened 1 year ago

thehughhefner commented 1 year ago

I've noticed audio stuttering in games that I've tried. Snatcher Rondo of blood My SD card is formatted to exFAT

sudoplay commented 1 year ago

I can confirm audio issues on RoB, both jp and english patched versions (w/exfat formatted sd).

To reliably replicate, press start to enter main menu, and wait ~90 seconds at the player selection screen. The wrong track will briefly play before resuming the correct track. The audio also will occasionally stutter, particularly during cutscenes and later into the game.

I've attached a completed save file here with all stages available. Akumajou Dracula X - Chi no Rondo.sav.zip

breakmanxavier commented 1 year ago

Gate of Thunder and Lords of Thunder are both stuttering constantly. Rondo of Blood is perfect for me, ironically.

I am formatted in Exfat. I have the same sd card the mister uses for PC engine CD.

chapel976 commented 1 year ago

Gate of Thunder and Lords of Thunder are both stuttering constantly. Rondo of Blood is perfect for me, ironically.

I am formatted in Exfat. I have the same sd card the mister uses for PC engine CD.

weird. Gate of Thunder is fine. Rondo is not. haven't tried Lords of Thunder yet.

mddifilippo89 commented 1 year ago

RoB - dialog doesn't sync with the intro. Its skipped by 5 seconds or so ahead of the video.

adamp commented 1 year ago

I've experienced different behavior based on cluster size used when formatting the sdcard. Windows 11 defaults to 4KB cluster sizes when formatting a 32GB sdcard as exfat, which results in skipping in some games for me; https://support.microsoft.com/en-us/topic/default-cluster-size-for-ntfs-fat-and-exfat-9772e6f1-e31a-00d7-e18f-73169155af95 recommends 32KB for sdcards up to 32GB, which fixes the stutter in those games using the same sdcard.

Mazamars312 commented 1 year ago

How did we go with larger sizes clusters? I have also added a audio delay that I think helps a bit with this too. So if someone could test this to see how that goes.

YLFAndy commented 1 year ago

How did we go with larger sizes clusters? I have also added a audio delay that I think helps a bit with this too. So if someone could test this to see how that goes.

In my experience it's much worse now. The delay adjustment doesn't do much, for better or worse. There were some bugs but it appears they've been closed. I had no audio issues with a re-exploded Rondo (back up to 27 bins) but now it's stuttering and the single bin now loads but is stuttering worse. Do you need a capture? I can grab one really quick. To clarify, 32kb cluster sizes didn't fix this for me, but I'm going to try a completely new card today and will report back. I'm also on a 500GB card, so that might be part of the issue.

breakmanxavier commented 1 year ago

My audio stuttering is about the same, maybe slightly better. Interesting change is that it doesn't allow me to turn it off while in Gates of Thunder now. I have to close the core before holding power works.

YLFAndy commented 1 year ago

OK, I went ahead and changed the cluster size to 256KB just to rule it out. Keep in mind, since a lot of roms and json files are tiny, this is a HORRIBLE option as you end up losing a lot of space (~3GB lost over 64KB cluster size on a 512GB card). It made no difference. The sound is still very scratchy in all games. It made no difference at all.

YLFAndy commented 1 year ago

NEW DATA - When I run it through CAPTURE there is no audio stutter. It's ONLY through the in-built speakers for me. I've verified with multiple games that dock output sounds fine. A few games are still not good (Popful Mail in example) but a lot of the scratchy games are completely fine through HDMI audio out.

Since having it hooked up to capture, the problems are now gone in handheld mode as well. I have zero idea how that would happen. Unless there was some stuck component holding a charge or something. But I was able to actually hear Snatcher after removing it from the dock (15 minutes ago it was sandpaper in my ears). I am at a loss as to why this could happen unless ...maybe something was grounding out in the USB port? I just don't know. It's very odd. But after docking, my sound issues are mostly gone, apart from games with vdp2 requirements.

undeadindustries commented 6 months ago

Audio issues in Bonk III as well.

Is this core still in active development? Seems like no updates in almost a year.