This was the solution for me @ 2021-03-27, to deactivate vsync (2GB Ram laptop). Thanks.
Hi, I’m new to the forum and am here to port my BBC Micro emulator to libretro. I have it working, but with audio enabled it gets very crackly and the frame rate drops significantly. running stand-a-lone, single threaded, win11, dx11 it uses about 2% of my 10 year old i7 and runs at hundreds of FPS with audio sync off. In the emulator I try to minimise latency and API interaction so currently have 5ms per audio buffer and swap between them using the audio to limit the simulation speed when windowed/not linked to v-sync. Without audio, libretro/retroarch runs well, also using about 2% CPU and its default d3d11. I have tried sending the audio using audio_cb and sample_cb as well as matching the libretro default of 48k (I run 250k natively) but all give very similar results which ever sound driver I use and whatever a change based on AI recommendations. I don’t think I have found the full documentation or a porting guide and admit that I don’t understand some of the menu options. Back to the profiler now to see if that gives any clues!
Sorry, just realised that the menu slows down to about half update speed when audio is enabled, so it probably isn’t related to my core as that isn’t even loaded and is probably something else related to my system. The menus aren’t even making a sound.
Double sorry, it turns out the audio had switched to my speakers on the motherboard which don;t exist, at least for retroarch, everything else was using speakers that do exist through hdmi. Swapping this and swapping to dsound audio is fine, with either sample by sample or batched. xaudio is nearly OK and the menu is almost smooth so there may still be things to look at on my system!