libretro / swanstation

GNU General Public License v3.0
96 stars 22 forks source link

Choppy sound and image on Metal Gear Solid PAL [Pi4] #8

Closed toniosj closed 2 years ago

toniosj commented 2 years ago

Metal Gear Solid PAL runs very laggy with choppy sound on Raspberry Pi4.

DarthMew commented 2 years ago

I have a few questions.

toniosj commented 2 years ago

Hi!

I'm using Recalbox

Metal Gear Solid (PAL) Metal Gear Solid (NTSC) Crash Team Racing (PAL) Crash Team Racing (NTSC) Norse by Norsewest: The Lost Vikings 2 (PAL) Norse by Norsewest: The Lost Vikings 2 (NTSC) https://forums.libretro.com/t/swanstation-what-causes-norse-by-norsewest-to-be-so-slow/36413

Rewind : Disabled

Always

bin+cue(+sbi)

DarthMew commented 2 years ago

What I was asking with my first question was more about what your core and frontend settings were, like renderer, enhancements and etc.

Regardless of that, could you try the following:

toniosj commented 2 years ago

All PGXP options disabled. Crop Mode = None Renderer = Sofware and Hardware tested (with hardware, games that worked prefectly on software have got poor performance, so I use Software)

New games detected that don't work fine:

Suikoden (PAL) Porsche Challenge (PAL): Sound starts to choppy when race start.

DarthMew commented 2 years ago

And it also doesn't matter if you use either OpenGL or Vulkan for the hardware renderer?

I'm afraid I personally can't be more of assistance, as I don't own a Pi4 myself, so it might be a good idea to ask other people who also use Swanstation on a Pi4 what their experience is so a clearer picture can be drawn regarding this issue.

ghost commented 2 years ago

I believe the pulse audio that recalbox has as default on the retroarch, affect the performance of swanstation. If you set it to alsathread, games running fast but, without audio.

From my tests, i have the best performance of swanstation with software renderer and alsathread.

toniosj commented 2 years ago

Cool! I've tried a Recalbox beta with alsathread and now these games are working at fullspeed and they have got audio!!!!!

Metal Gear Solid (PAL) Metal Gear Solid (NTSC) Crash Team Racing (PAL) Norse by Norsewest: The Lost Vikings 2 (PAL) Suikoden (PAL) Porsche Challenge (PAL)

Looks like a Swanstation compatibility issue with the PULSE audio driver.

digitalLumberjack commented 2 years ago

Hello :)

Thank you for all the work on this core !

I was also testing retroarch + swanstation with MGS Pal version on recalbox, and the pulseaudio thread use like 130% of the cpus on rpi4. Having aslathread as default driver do the trick and we will implement it in recalbox, but as it's the only core in all cores and emulators in recalbox having this issue, it was worth reporting it @toniosj :pray: