Skip to content

ReplicantGaiden 0.0.4

Choose a tag to compare

@github-actions github-actions released this 28 Nov 19:37
· 45 commits to main since this release

ReplicantGaiden 0.0.4 — x3/x4 render speed fix

Fixes

  • x3/x4 internal resolution dropped to ~10-20 fps. The video renderer was single-threaded and ran inside the emulation loop; at x4 it costs 26 ms per frame on a fast desktop (the frame budget is 17 ms) and far more on a laptop in power-save. Now (1) scanlines are rendered in bands across up to 8 cores with dynamic scheduling (output bit-identical to the serial renderer at every scale; x4: 26.5 ms -> 5.6 ms here), and (2) video runs on its own thread with a copy of the video state, so a slow render lowers only the displayed fps and never the game speed or audio. Measured on a Core Ultra 5 135H at x4 in a window: emulation 59 fps, 58.9 frames/s shown, audio queue steady (before: emulation 48 fps, queue draining to 0).
  • Without vsync the loop now sleeps until the next frame is due instead of spinning a core.
  • log.txt adds shown fps and per-phase times (emulation, render, upload, present) every 10 s. RG_VIDEO_THREADS=N overrides the render thread count.

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=0 restores the old behaviour).
  • log.txt now 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-verify differential mode (native vs interpreter: registers, RAM, hardware writes), embedded verification profile, --interpreter reference mode.
  • Renderer selection (--renderer vulkan,opengles2,software, settings.ini renderer=, --list-renderers) and a --handheld profile; 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.