Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resident Evil 2 - music/sound stuttering #1062

Open
KamiLordus opened this issue May 9, 2023 · 10 comments
Open

Resident Evil 2 - music/sound stuttering #1062

KamiLordus opened this issue May 9, 2023 · 10 comments
Labels
audio Audio input/output related issue bug Something isn't working libretro Specific to Libretro core

Comments

@KamiLordus
Copy link

KamiLordus commented May 9, 2023

Transitioning between locations, opening inventory, or maps noticeably cuts/stutter the music/sound.
I've tried different core options but nothing helps. I tested the game in CHD and GDI format.
I'm using RA 1.15 with the latest version of the Flycast core.
OS Win 11

@KamiLordus KamiLordus added the bug Something isn't working label May 9, 2023
@HyperSonic1999
Copy link

HyperSonic1999 commented May 10, 2023

Also had this issue yesterday and just found a workaround. Disabling "Threaded Rendering" should stop it from cutting out when changing screens, only downside is that screen transitions take 2 or less seconds to load instead of just 1 second with TR on. Edit tried this on both GL and Vulkan video driver and get the same issue and solution.

@KamiLordus
Copy link
Author

@HyperSonic1999 thanks a lot. After disabling threaded rendering the game works normally.

@HyperSonic1999
Copy link

@KamiLordus No prob, hope you enjoy.

@flyinghead
Copy link
Owner

reopening since this doesn't look right

@flyinghead flyinghead reopened this Jun 4, 2023
@sappergr
Copy link

sappergr commented Sep 26, 2023

Using the flatpak version of Flycast (not sure if relevant) Videos seems to freeze if not using VGA cable method.
Edit: in the appimage version its incredibly choppy no matter the settings.

@mfigueirido
Copy link

Exact same behaviour on Alone In The Dark - The New Nightmare. There's lots of audio stuttering specially noticable when changing screens. Fixed by disabling threaded rendering but then screen load times go from almost instant to taking around a second.

@flyinghead flyinghead added libretro Specific to Libretro core audio Audio input/output related issue labels Oct 16, 2023
@tmmmmm
Copy link

tmmmmm commented Jul 18, 2024

Installing a bios-file fixed the video/audio-stuttering for me.
(on Steam Deck, running Flycast v2.3 standalone)

@TessArdent
Copy link

TessArdent commented Jul 25, 2024

Although disabling thread rendering does fix it, "Detect Frame Rate Changes" is a much better solution. The audio transition is still not smooth, but I think that's just a symptom of the game loading the next angle much quicker.
Set Core Options > Video > Detect Frame Rate Changes to OFF (in RetroArch - not sure about other distributions).
I also added dc_boot and dc_flash to my bios. I'm not sure if that's necessary, but it did add the dreamcast opener when I launch RE2.

@mfigueirido
Copy link

mfigueirido commented Aug 19, 2024

Made some more testing regarding this with refreshed Retroarch and Flycast core. Used a real bios file and "Detect Frame Rate Changes" was off. On my side there's simply no way to get clean audio when using the RA core. With "Threaded Rendering" enabled the audio cuts during any kind of transition. With "Threaded Rendering" disabled a different kind of sound stuttering kicks in. This one happens everywhere rather than during transitions. Super easy to spot during RE2's intro FMV, but present during all gameplay sections.

This happens as well in Alone in the Dark, Sega Rally 2 and probably many other games:
#1211

@mfigueirido
Copy link

Managed to get it working right. This is what I did:

  1. Disable "Threaded Rendering".
  2. In Retroarch's menu go to Settings->Video->Synchronization and set "Max Swapchain Images" to 4. If you don't do this some sporadic stuttering will remain.
  3. Ensure you don't have the SH4 CPU overclocked, or the overclock is not big at least. In my tests Resident Evil 2 could be overclocked up to 300Mhz with no sound stuttering, while Sega Rally 2 only accepts up to 250 Mhz.

This way the game will play perfectly except that when switching camera angles there will be some slowdown that "Threaded Rendering" fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Audio input/output related issue bug Something isn't working libretro Specific to Libretro core
Projects
None yet
Development

No branches or pull requests

7 participants