Skip to content

Releases

v0.1.7 - native overlays actually compile, and fast

Choose a tag to compare

@Marusame00 Marusame00 released this 30 Nov 01:20

What changed

Two fixes that together make the game stop running in the interpreter.

1. The kit shipped no overlay toolchain (0.1.6 regression, now fixed)

The runtime only enables overlay autocompile when overlay_toolchain/python/python.exe exists beside the exe. psxrecomp/tools/package_setup_host.sh never copied overlay_toolchain/ into the kit, so the gate stayed false, cache/ stayed empty, and every overlay ran in the dirty-RAM interpreter. The packager now stages ${EXE_DIR}/overlay_toolchain/ (skipping the build machine's absolute-path compiler.txt). The kit grows from ~54 MB to ~69 MB as a result.

Boot log now shows:

psxrecomp: gcc tier using bundled toolchain (...\overlay_toolchain) with ...clang.exe
psxrecomp: overlay autocompile enabled (gcc); cache=...

2. Large shards compiled at -O2, so the interpreted window was a minute

The guest runs an overlay in the interpreter until its DLL is published, so compile time is the interpreted window. FF8's largest region C is 10.6 MB of generated code. Measured on this machine with the bundled clang, same file, same flags:

Optimization Wall time DLL size
-O2 (was the default) 46 s 5,058,048 B
-O0 1.8 s 2,399,744 B

compile_overlays.py now compiles shards at or above LARGE_SHARD_O0_BYTES (2 MB) at -O0 unless the caller asks otherwise. An explicit optimization argument still wins and the tcc tier keeps its own path. -O0 was already an accepted value in _validate_overlay_optimization, so no new code path is introduced.

Observed live before the fix: one shard 18 s, the 10.6 MB shard 67 s, cache growing 29 files / 6 DLL shards to 347 files / 85 DLL shards in a single session. After the fix the same shard compiles in 1.8 s.

Also in this release

  • Non-canonical disc warning. The launcher shows an amber "Disc verified (warnings)" badge and a "Disc is not the canonical dump" notice for rips outside known_crc32, and still allows play. RecompLauncherCDiscVerify gained crc_computed, crc, crc_in_known_list.
  • scripts/perf_probe.py queries the debug server for frame_perf, separating emu_cpu_ms from scene_gpu_ms, present_gpu_ms, prims_avg, per_prim_us and batches_avg, so a CPU-bound frame can be told apart from a draw-call-bound one.
  • HANDOVER.md documents every fix with measurements, including section 12 (toolchain) and section 13 (compile time).
  • patches/ carries the submodule changes as patches: psxrecomp-runtime.patch (5 files, applies clean on pristine 578bd3be) and recomp-ui.patch.

Upgrading an existing install

Copy overlay_toolchain/ next to Final_Fantasy_VIII_Recompiled.exe, or install this kit fresh. Shards already in cache/ stay as they are; only new regions compile at -O0. To force a region to recompile, delete its *_patched.c / *.dll / *.ranges triple.

Still open

  • Crunchy audio in battles with several enemies, worse with more. Same class as the lag: more enemies means more interpreted overlay code and longer frames, and [audio] buffer_ms = 60 leaves little slack. Expected to improve with the -O0 shards; if it survives that, raise buffer_ms before touching the mixer.
  • Draw crashed rendering the ???? battle window on a non-canonical dump only. Works on the canonical set; root cause not fixed.
  • High-pitched / wrong sound effects at times.
  • The launcher has no delete-and-rebuild button.

Credits

This is a fork of alexbeavs-ps1-ports/final-fantasy-viii-recomp by Alex Beavs, who wrote the recompiler, runtime and UI. The fixes above are fork-local changes on top of that work; the upstream project is credited in the README and none of its authorship is claimed here.

v0.1.6 — non-canonical dump warning

Choose a tag to compare

@Marusame00 Marusame00 released this 30 Nov 00:03

What changed since 0.1.5

Amber warning for non-canonical dumps

The launcher now shows Disc verified (warnings) plus a Disc is not the canonical dump notice when the selected disc's CRC32 is not in [prepare_disc] known_crc32. PLAY stays enabled — this warns, it never refuses.

Verified:

non-canonical disc 1:  verdict=2  crc=da61affe  in_list=0
canonical disc 1:      verdict=1  crc=2691d2de  in_list=1

This matters because using Draw in battle killed the process on a non-canonical rip of the same game, at 0x800DB6AC with an invalid primary opcode. The canonical dump does not crash. The underlying fault is not fixed, only avoided.

Silent exits are no longer reported as clean

The top-level dispatch returning now prints ABNORMAL EXIT - top-level dispatch returned PC=... ra=... sp=... instead of the misleading execution completed, PC=0x00000000.

Digest lists restored to upstream

known_md5 and known_sha1 hold only the creator's original four entries again. The crashing set moved to known_buggy_md5 / known_buggy_sha1, which no parser reads — that is what keeps the amber badge firing for it.

Documentation

  • HANDOVER.md — every fix with the command output that verified it, so another developer or their AI can port each change upstream
  • TODO.md — open bugs and the requested delete-and-rebuild UI button
  • patches/ — psxrecomp and recomp-ui are submodules, so the runtime edits ship as patches

Applying the runtime patches

psxrecomp/ and recomp-ui/ are git submodules pointing at upstream repos, so those edits cannot be pushed to this fork. The shipped binary has them; a fresh clone needs:

cd psxrecomp && git apply ../patches/psxrecomp-runtime.patch
cd ../recomp-ui && git apply ../patches/recomp-ui.patch

Both verified to apply cleanly to a pristine submodule checkout.

Known issues

  • Draw still crashes on non-canonical dumps. Root cause not found.
  • Overworld lag. Overlay at 0x800D0000 is not registered with the loader.
  • High-pitched or wrong sound effects at times.
  • ~100 ms audio latency; buffer_ms lowered 180 -> 60, needs re-testing.
  • No delete-and-rebuild in the launcher UI.

Updating an existing install

Install into an empty folder, or delete the old app folder first. Overlaying onto an older install leaves files the new kit no longer ships, which made generate fail at step 3 with emitters cmake configure failed. This build excuses those 13 stale test files, but a clean install is still the safer path.

Assets

Windows x64 only. Upstream ships Linux and macOS builds; this fork does not.

v0.1.5

Choose a tag to compare

@Marusame00 Marusame00 released this 28 Nov 06:54

v0.1.5

28 November 2026

Warning: update in place over an old install folder

Quiver (and any installer that copies a kit over an existing folder) does not
delete files the new kit no longer ships. Updating a 0.1.4 folder in place
leaves stale test_*.c / test_*.py files under psxrecomp/, and
psxrecomp/runtime/check_test_registration.cmake refuses to configure while
any unregistered test file is on disk. Setup then fails at step 3 with:

psxrecomp generate failed (exit 1): emitters cmake configure failed (exit 1)

A fresh install into an empty folder is unaffected. If you are updating,
delete the app folder first (or install to a new one) so the kit extracts
clean. This release also excuses the known stale names at package time, so an
in-place update over 0.1.4 configures cleanly — but a clean folder is still
the reliable path.

Fork of alexbeavs-ps1-ports/final-fantasy-viii-recomp. The behavioural change is the disc check: setup no longer refuses a dump just because its data-track digests are not the one rip the kit pinned. This release also makes the kit installable and updatable through Quiver Launcher.

Why setup refused working discs

psxrecomp/psxrecomp_cli.py:verify_disc_path raised

disc digests not in prepare_disc.known_* (size=... md5=... sha1=...)

and exited with code 3 unless the data track's MD5 or SHA-1 appeared in [prepare_disc] known_md5 / known_sha1. The kit listed exactly one Redump rip per disc, so any other dump of the same USA release — same game, same boot EXE, same sizes — was refused before codegen started. That is the "super specific version" everyone was hitting.

Changes

  • scripts/psxrecomp_cli_fuzzy.py — new drop-in for the framework CLI. It imports the real psxrecomp_cli and wraps verify_disc_path: on a digest mismatch it logs a warning and continues instead of exiting 3. The ISO9660 header, boot serial and boot EXE checks are untouched, so a disc that is not this game is still refused.
  • [prepare_disc] accept_unverified_disc — new kit setting, default off. With it off the refusal is byte-for-byte the old behaviour. game.toml sets it to true.
  • codegen_setup.c — psxrecomp_cli_relpath now points at the wrapper, so the setup host uses it. The change lives entirely in the game repo; no fork of psxrecomp or recomp-ui is needed.
  • game.toml — added the MD5/SHA-1 of a second, widely circulated four-disc dump set to known_md5 / known_sha1, so those discs verify normally rather than falling through to the relaxed path.
  • scripts/package_setup_release.sh — ships scripts/psxrecomp_cli_fuzzy.py in the setup kit, and renames the finished archive to ...-win64.zip.
  • VERSION — 0.1.5.

Quiver Launcher

Quiver's platform matcher only recognises win64, win32, win-x64, win-x86, -win., _win., .msi, or the regex [_-]win[_-]|[_-]win\d|^win[_-]. The previous asset name ended in windows-x64, which matches none of them, so the app reported "No Matching Assets". The asset is now final-fantasy-viii-0.1.5-win64.zip, and 0.1.5 outranks the 0.1.4 you may already have installed.

To use it: add Marusame00/ff8-recomp-anydump as the repository for the Final Fantasy VIII entry in Quiver, then install or update.

What to do

Download the Windows x64 setup kit, extract it to a normal folder (not a temporary ZIP preview), run setup, and select your own disc 1 .cue and your own SCPH-1001 BIOS dump. If your dump is not one of the listed rips, setup now warns and continues instead of refusing.

Tested

  • Windows x64, cmake-clang-v1 toolchain, clang build.
  • generate exit 0 — 36 shards, 1,883 dispatch entries, disc/ staged with SLUS_008.92 (1,642,496 bytes) and SYSTEM.CNF.
  • rebuild exit 0 — Final_Fantasy_VIII_Recompiled.exe, 63.7 MB, stamp 0.1.5.
  • Launcher: "Disc verified", serial SLUS-00892, region NTSC-U, ISO header OK, PLAY enabled.
  • PLAY: bios_backend=LLE, image=SCPH-1001, executing from PC=0xBFC00000, bios phase: end=game_entry frame=932, intro renders.
  • The relaxed path was exercised directly: with deliberately wrong digests, flag off refuses as before and flag on warns and continues.

Known issues

  • Updating in place over an old install folder can fail at step 3 with
    emitters cmake configure failed. Overlay installers leave stale test files
    behind and runtime/check_test_registration.cmake refuses to configure while
    any unregistered test file is on disk. A fresh extract into an empty folder is
    unaffected; this release also excuses the known stale names at package time.
  • Only the Windows x64 kit is built and tested here. Linux x64 and macOS kits are not produced by this fork.
  • The "okay to proceed" behaviour is a game.toml flag, not a checkbox in the setup wizard. A real checkbox needs recomp-ui forked as well.
  • Discs are still checked for the right game. This fork relaxes digest matching, not identity.

Licence

PolyForm Noncommercial License 1.0.0, unchanged from upstream. You must supply your own discs and BIOS.

Source: 841435e

v0.1.1-anydump

Choose a tag to compare

@Marusame00 Marusame00 released this 28 Nov 06:28

v0.1.1-anydump

28 November 2026

Fork of alexbeavs-ps1-ports/final-fantasy-viii-recomp at v0.1.4 (41b3474). The only behavioural change is the disc check: setup no longer refuses a dump just because its data-track digests are not the one rip the kit pinned.

Why setup refused working discs

psxrecomp/psxrecomp_cli.py:verify_disc_path raised

disc digests not in prepare_disc.known_* (size=... md5=... sha1=...)

and exited with code 3 unless the data track's MD5 or SHA-1 appeared in [prepare_disc] known_md5 / known_sha1. The kit listed exactly one Redump rip per disc, so any other dump of the same USA release — same game, same boot EXE, same sizes — was refused before codegen started. That is the "super specific version" everyone was hitting.

Changes

  • scripts/psxrecomp_cli_fuzzy.py — new drop-in for the framework CLI. It imports the real psxrecomp_cli and wraps verify_disc_path: on a digest mismatch it logs a warning and continues instead of exiting 3. The ISO9660 header, boot serial and boot EXE checks are untouched, so a disc that is not this game is still refused.
  • [prepare_disc] accept_unverified_disc — new kit setting, default off. With it off the refusal is byte-for-byte the old behaviour. game.toml sets it to true.
  • codegen_setup.c — psxrecomp_cli_relpath now points at the wrapper, so the setup host uses it. The change lives entirely in the game repo; no fork of psxrecomp or recomp-ui is needed.
  • game.toml — added the MD5/SHA-1 of a second, widely circulated four-disc dump set to known_md5 / known_sha1, so those discs verify normally rather than falling through to the relaxed path.
  • scripts/package_setup_release.sh — ships scripts/psxrecomp_cli_fuzzy.py in the setup kit. Without it the packaged setup host would point at a CLI the zip does not contain.

What to do

Download the Windows x64 setup kit, extract it to a normal folder (not a temporary ZIP preview), run setup, and select your own disc 1 .cue and your own SCPH-1001 BIOS dump. If your dump is not one of the listed rips, setup now warns and continues instead of refusing.

Tested

  • Windows x64, cmake-clang-v1 toolchain, MSVC-free clang build.
  • generate exit 0 — 36 shards, 1,883 dispatch entries, disc/ staged with SLUS_008.92 (1,642,496 bytes) and SYSTEM.CNF.
  • rebuild exit 0 in 4m50s — Final_Fantasy_VIII_Recompiled.exe, 63.7 MB.
  • Launcher: "Disc verified", serial SLUS-00892, region NTSC-U, ISO header OK, PLAY enabled.
  • PLAY: bios_backend=LLE, image=SCPH-1001, executing from PC=0xBFC00000, bios phase: end=game_entry frame=932, intro renders.
  • The relaxed path was exercised directly: with deliberately wrong digests, flag off refuses as before and flag on warns and continues.

Known issues

  • Only the Windows x64 kit is built and tested here. Linux x64 and macOS kits are not produced by this fork.
  • The "okay to proceed" behaviour is a game.toml flag, not a checkbox in the setup wizard. A real checkbox needs recomp-ui forked as well.
  • VERSION in the tree is 0.1.1, which is what the binary stamp and the packager require; the fork is based on the v0.1.4 tree.
  • Discs are still checked for the right game. This fork relaxes digest matching, not identity.

Licence

PolyForm Noncommercial License 1.0.0, unchanged from upstream. You must supply your own discs and BIOS.

Source: d9eea11