github undecuple/project-pyrrhus v0.1.14

2 hours ago

Project Pyrrhus 0.1.14, an early, experimental release: partly playable, see docs/RELEASE-CRITERIA.md.

New in 0.1.14:

  • Game-file check: if you pick the folder that holds your disc image instead of the image itself, and it holds exactly one .iso and no PS3_GAME, the setup and the console ask once and use it (the launcher and RecompLauncher take it and say so in the log). If you pick dev_hdd0\game as the update, the folder of your own disc's title id in it is offered the same way.
  • Game-file check: the disc, the update and the EBOOT are compared by release (US, Europe, Asia, Japan), and a mismatch is said first in plain words, such as "Your disc is the European version (BCES00081), but this EBOOT is from the US release (BCUS98116)". The messages name your own disc's title id, including the dev_hdd0\game\<id> folder, instead of a US example.
  • Game-file check: the update message says what the folder holds: an update package (.pkg) that is not installed yet, another region's update, or another version (from its PARAM.SFO). A picked file that is the encrypted EBOOT.BIN gets one line saying the port needs the decrypted EBOOT.elf, with a link to GETTING-FILES.md.
  • Game-file check: when the same check fails twice in a row with the same unchanged files (within an hour), a short numbered guide pointing to GETTING-FILES.md follows the check's own lines. The launcher's logs\launcher.log now records the check's result and its check ids (no paths), so a support package shows why the setup stopped.
  • First-run build: on Windows it now runs with a clean search path (only its own compiler, CMake, Ninja and Python and the Windows folders), so another MinGW or GCC installed on the PC can no longer be picked up by mistake; a folder with letters outside A to Z (such as an accented user name) gets a clear warning in the setup and in the first-run check.
  • Setup: installs only into an empty or new folder, or over an earlier Project Pyrrhus install; a folder that already holds other files is refused, and the setup and the uninstaller delete their own folders only in a folder that is a Project Pyrrhus install (marked by kz2-owned.txt), so they never delete files they did not put there. They never delete through a folder link (a junction or symbolic link), and an uninstall that keeps your portable saves keeps the folder's mark, so you can install into it again.
  • Releases: from 0.1.14 a release is a full GitHub release (0.1.1 to 0.1.13 were pre-releases); the port is still early and experimental. The portable zip is now named Project-Pyrrhus-<version>-Windows-x64.zip (it was -portable.zip), so launchers can tell which system it is for.
  • First-run build: with under 8 GiB of free memory when the build starts, its steps run at below-normal priority so the PC stays usable while it compiles; with more, nothing changes. Adapted from Project Vekta.
  • Launcher: "Make a support package" in the Start menu (or Project Pyrrhus.exe --support-package in a portable folder) writes one zip of the newest logs, up to 10 crash reports, your settings and a few facts about the PC, with your user folders, account name, network server names and the PC's name left out, for you to attach to a bug report; nothing is uploaded (TROUBLESHOOTING.md). Adapted from Project Vekta.
  • Releases: each tagged release gets a signed build-provenance statement for the setup program and the portable zip, which anyone can check with gh attestation verify <file> --repo undecuple/project-pyrrhus (adapted from Project Vekta). The workflow step has not run yet; it first runs at the next tag.
  • RecompLauncher: the portable zip carries a recomplauncher.json, the file the launcher reads to set the game up from your own copy (disc dump or decrypted ISO, the 1.29 update and, if it is not in the update folder, the decrypted EBOOT), start it and show its display, pad layout and button prompt settings; a "Get it on RecompLauncher" badge is in the README. Not yet tried in the launcher itself.
  • README: badges and section dividers restyled in the site's colours; the divider images are drawn by a small generator and checked by a test.
  • Website: the project page is now a game-style menu (arrow keys, Enter and Esc, or a game pad) with an in-page screenshot viewer (previous and next, swipe, Esc to close); it works without scripts, and a plain page (plain.html) carries the same content. The page's only script is its own and uses no network or storage.
  • Setup and launcher: a troubleshooting page organised by what you see (setup or build fails, black screen or nothing on Play, a stop at the menu, a pad not detected, slow or stuttering), with where the logs are and what to attach to an issue; the FAQ now says what installing an update keeps and what it rebuilds, and says that only the DualShock 4 has been hand-tested (other pads are untested).

Fixed:

  • Speed of source builds (patch 6107): a Windows build made from the source after the 2026-11-25 SPU changes ran at about 3 fps: a quirk of the Windows linker read the switches of the fast SPU path from the wrong place, so every SPU job fell back to the slow path. Each switch now has its own storage, and a host test (tools/runtime/test_spu_gate_weak_pe.sh, run in CI) checks the linked result.
  • Synchronization: preserve the recursive attribute when creating a lightweight mutex, return “busy” for a contended nonblocking lock attempt, and reject misaligned cellSync mutexes before touching their memory. Adapted from ps3recomp PR #621 by Max Leiter; covered by host regression tests without game data. No game run was performed for these changes.
  • SPU math on ARM64 (patch 6086): fma, fms and fnms now flush subnormal results to zero on hosts without SSE4.1, as the Windows build does. A new host test runs all 150 SPU helpers on both paths and found these three the only ones that differed; all now match bit for bit. On builds without SSE4.1 only, the double-precision helpers (dfa, dfs, dfm and the four fused forms) now pick the NaN a result keeps by the x86 rule, step by step in written order, instead of leaving it to the compiler's operand order (found by the same test in CI: dfma and dfnma differed when two inputs of a word were NaN); builds with SSE4.1, the Windows build included, compile the same code as before.
  • macOS speed, SPU (patches 7041, 7042): on Apple ARM64 the SPU helpers that dominated a first-mission profile now run as NEON, bit for bit the same as the Windows build's SSE4.1 paths (all 150 helpers, 3,000,000 cases): - shufb and its ra == rb and hoisted forms took 35.7 % of all process samples as a byte loop; - xr_mask, the quadword byte permutes (rotqby and the rest) and fma/fms/fnms came next. In the contributor's scripted runs on an Apple M4 Pro (60 s windows of the first mission) gameplay went from about 5 to 24-27 frames per second. Host test test_spu_neon_coverage.py covers every shufb control byte and every byte-permute shift.
  • macOS speed, SPU masks (patch 7044): the exponent-255 word test every float helper runs now returns at once in the usual case and tests three or four words in one go. It had been the largest single item of the profile.
  • SPU entry gate and fma flush (patch 7045): every lifted SPU function no longer re-tests five debug switches on entry: once spu_hop_init has read them all off, the gate is one load (on every host; with any of SPU_LS_LOWREAD, SPU_SMC_WATCH, SPU_WWS_PROBE or SPU_LS_WATCH set nothing changes). On ARM64 the fma subnormal flush is three vector instructions instead of four branchy word tests, the same words as before.
  • Opt-in developer change, macOS audio plugins (patch 7043, lift): the Amadeus audio plugin modules are now lifted at LS 0x8400, where the audio job loads them, and are recognised by their header (the job DMAs a heap copy). Before, they ran in the SPU interpreter: 25-30 million steps a second and 13 % of all samples in combat. The lifted code is used only when its bytes match what was loaded. Opt-in (KZ2_SPU_AMADEUS_PLUGINS=1, set by the macOS lift script tools/lift-kz2-macos.py, which is not in the repository yet), so the Windows build and other lifts are unchanged until it is checked there. It has not yet been seen running in a scene that loads the plugins.
  • Opt-in developer change, SPU code no longer interpreted (lift seeds): eleven SPU function entries that only a computed branch reaches -- in the EdgeAnim, particle manager, particle update and Amadeus jobs -- are now lifted from re/spu_entry_seeds_v129.tsv, found with SPU_INTERP_HIST=1. Opt-in (KZ2_SPU_ENTRY_SEEDS=1, set by the macOS lift script tools/lift-kz2-macos.py, which is not in the repository yet), so the Windows build and other lifts are unchanged until it is checked there. They had been the SPU interpreter's whole remaining load, about 1 % of one thread in the cruiser; a run from the mission start into play entered the interpreter zero times.
  • macOS boot stall (patch 6089): lightweight condition variables (sys_lwcond) now wait and wake on every host. Their wait and signal used to compile only on Windows: elsewhere a wait returned at once without releasing its mutex, so the game's file-streaming threads deadlocked on the first read and the screen stayed black.
  • macOS fonts (patch 6109): the system fontset now finds fonts/ next to the executable on macOS, where there is no /proc/self/exe; the FIOS cache stamp reads the executable path the same way.
  • macOS speed, frame thread (patch 6087): the frame thread's sleep between FIFO passes was a no-op everywhere but Windows, so it spun at the outer loop's full rate -- ~35k message pumps a second, each a dispatch to the main queue, and a busy core. It sleeps 4 ms like the Windows build now (nanosleep, which takes waits past one second; host test test_posix_sleep_ms.py): pumps dropped 122x (in the contributor's 400 s scripted session, ~280 per 10 s; it was ~34,600).
  • POSIX SPURS kernel wake (patch 7046): the SPURS kernel threads signal each other without the lock when nobody sleeps, and a waiter watches for new work for 20 us (KZ2_KWAKE_SPIN_US, 0 = off) before it sleeps. Windows keeps its own path. Host test test_kwake_posix.py checks that no signal is lost.
  • POSIX SPURS kernel wake (patch 7047): all generation counter accesses are atomic, so a signal can advance the counter while a waiter reads it. Signaling still skips the mutex when no waiter is asleep.

If you have an earlier version, install this one over it: run the new setup and pick the same folder. The first start then translates and builds the game again where this version changes how it is built.

See CHANGELOG.md for the full list.

Windows installer (Project-Pyrrhus-setup.exe, recommended) and portable zip (Project-Pyrrhus-0.1.14-Windows-x64.zip). You need your own Killzone 2 disc dump (US, BCUS98116; the European, Asian and Japanese discs are accepted but untested), the 1.29 update of the same region and a decrypted EBOOT made from your own copy; none of them is included or downloaded. What each must contain: docs/GETTING-FILES.md. SHA-256 sums: SHA256SUMS (and the .sha256 files). What goes online: docs/PRIVACY.md.

Next planned release: Thursday 2026-12-03.

Don't miss a new project-pyrrhus release

NewReleases is sending notifications on new releases.