mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.63k stars 771 forks source link

SDL audio issue? #1492

Open buvk opened 5 years ago

buvk commented 5 years ago

When I use SDL audio and sync to audio, my framerate caps at around 43-44FPS. In order to run at full speed, I have to set the audio driver to QT Multimedia.

I am running the latest development build (0.8-5880-5c5be73c4) on Windows 10 v1903. This problem also occurs on the latest stable release.

endrift commented 5 years ago

What are your sound drivers? Are they up to date?

endrift commented 5 years ago

Also, what do you have your buffer size set to?

buvk commented 5 years ago

Realtek High Definition Audio, latest driver. Buffer is set to 1536 samples.

The issue happens when my audio device is set to Realtek High Definition Audio (speakers) prior to launching mGBA. If I set my audio device to NVIDIA High Definition Audio (headphones), I get the proper framerate with SDL.

I just tried to re-install the drivers, but that did not solve the problem. I then uninstalled them and let Windows 10 re-install them automatically. This time it seems to have solved the issue.