libretro / beetle-saturn-libretro

Standalone hard fork of Mednafen Saturn to the libretro API.
GNU General Public License v2.0
18 stars 7 forks source link

Backport from libretro-mirrors #17

Closed ichee closed 1 year ago

ichee commented 1 year ago

Backport changes from PR's 191, 197, and 199 by jdgleaver.

Current master suffers from a performance penalty (at least under Windows) that prevents reducing the audio latency below a certain threshold (25-30ms for me).

Issue appears to be caused by lack of rsemaphore referencing for VDP2 "busy wait".

These changes improve performance and allow for latency to be further reduced.

Tested on WIndows 11 using WASAPI audio driver.