Repository navigation
ReplicantGaiden 0.0.3
ReplicantGaiden 0.0.3 — audio sync fix, gamepad menu
Fixes
- Audio drifted out of sync after a minute or so. The sound board was being run for 275 236 main-CPU cycles per frame, which is 1.4 % more than a real 1/58.94 s frame, so it produced ~12 stereo frames per frame more than the host consumed. Its 65 536-frame ring filled after ~90 s and the sound then lagged by 1.4 s and dropped samples. Sound and EEPROM now run on real time (one frame = 1/58.94 s), and per-frame cycle overshoot is carried into the next frame. Ring fill is now constant (~1 frame) over 10 minutes in both native and interpreter modes; frames 300/700/1100/1500 still match MAME exactly.
- Host audio queue: adaptive playback-rate control (±1 %) keeps the latency near 80 ms instead of dropping blocks (
RG_AUDIO_CTRL=0restores the old behaviour). log.txtnow records, every 10 s: fps, audio queue min/avg/max, rate ratio, drops/underruns, sound-ring fill, native call/bail-out counts.
Controls
- Select + Start (Back + Start) opens and closes the menu on gamepads (Steam captures Guide). The menu can now be navigated with the D-pad / A / B. Back inserts its coin on release and only if it was not part of the combo.
ReplicantGaiden 0.0.2 — recompiled code runs
You must own an original copy of Darius Gaiden. No ROM or game data is included; bring your own dariusg.zip. The recompiled routines are derived from the game's program: do not redistribute them or the ROM.
New
- Recompiled game code is now the default. 2583 routines from Taitof3Decomp run as native C inside a rollback journal; ~80 % of emulated CPU cycles (~44 % excluding idle) execute natively. Anything not recompiled, or that bails out, runs in the Musashi interpreter. Frames 300/700/1100/1500 remain pixel-identical to MAME 0.289.
--native-verifydifferential mode (native vs interpreter: registers, RAM, hardware writes), embedded verification profile,--interpreterreference mode.- Renderer selection (
--renderer vulkan,opengles2,software,settings.ini renderer=,--list-renderers) and a--handheldprofile; SDL 3.4.0 (Vulkan / SDL_GPU renderers). - PortMaster package for aarch64 handhelds (Mali / Panfrost / libmali):
ReplicantGaiden-<version>-portmaster.zip. Untested on real devices.
Not yet
- 28 verified-problem or hardware-port routines still run interpreted; no "original slowdown" option; RmlUi menus, key rebinding, save states, CRT/xBRZ filters, Windows arm64.
Downloads: Linux x86_64 / arm64 (tar.gz), Windows x64 and macOS universal (zip), PortMaster (zip). Binaries are unsigned; macOS may require xattr -cr / right-click → Open.