libretro / flycast

Flycast is a multiplatform Sega Dreamcast emulator. NOTE: No longer actively developed, use upstream repo for libretro from now on - https://github.com/flyinghead/flycast
http://reicast.com
GNU General Public License v2.0
155 stars 77 forks source link

SoulCalibur intro music synchronization issue #778

Open mlnlbrt opened 4 years ago

mlnlbrt commented 4 years ago

Hi @flyinghead , I've noticed something is wrong with music in SoulCalibur intro. RA 1.8.2 in a custom Lakka build, flycast 1180c7a.

Please take a look at this recording (turn the volume up, sorry for the quality, can't get recording in RA to work...): https://www59.zippyshare.com/v/MDQkB6kH/file.html

mainly 1:01-1:11, 1:50-2:09 and starting from 2:32.

I don't know exactly when it started to happen but I've tried it using some old pre-naomi libretro reicast build and it seems to be okay: https://www116.zippyshare.com/v/ak0qZzOj/file.html

Please let me know if you need more details.

roslof commented 4 years ago

Try turning on Synchronous Rendering in Options. Works for me. Ensure Threaded Rendering is enabled.

mlnlbrt commented 4 years ago

@roslof thank you for the tip, but it didn't help. :( NOTE: I'm using Vulkan renderer

flyinghead commented 4 years ago

I can't reproduce this on x86/64 no matter which core options I try.

What's your platform CPU and what settings are you using?

mlnlbrt commented 4 years ago

@flyinghead Linux x86_64, default core settings (just increased resolution), built with: CFLAGS = CXXFLAGS = -march=x86-64 -m64 -fomit-frame-pointer -Wall -pipe -O2 -mmmx -msse -msse2 -mfpmath=sse make HAVE_OPENMP=0 LDFLAGS=-lrt HAVE_LTCG=0

flyinghead commented 4 years ago

I still cannot reproduce after recompiling with these options

mlnlbrt commented 4 years ago

Here is the core binary I'm having the issue with: flycast_libretro.so.tar.gz

The issue is present with both OpenGL and VK renderer.

flyinghead commented 4 years ago

Just tested with your binary and it doesn't happen on my machine.

Has anything changed regarding audio in your environment?

mlnlbrt commented 4 years ago

Just tried to reproduce it using the above binary in a clean environment:

and the issue is still here.

It looks that something is wrong with either Lakka or flycast core default configuration or Lakka itself.

I don't have any idea what can be wrong, tried to change audio driver from alsathread to alsa but it didn't help. :(

mlnlbrt commented 4 years ago

@flyinghead can you send me your retroarch and flycast cfg? will give it a try

flyinghead commented 4 years ago

Here we go.

myconfig.zip

DISCLAIMER: this is my current development config, not an optimal config in any way, shape or form

mlnlbrt commented 4 years ago

Just a quick update, copying over reicast settings from your retroarch-core-options.cfg fixed the issue. I will try to track down the RCA later.

flyinghead commented 4 years ago

Interesting. Let me know which option causes this issue.