Skip to content

Releases

Punch-Out!! QilinRecomp 0.23.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 17:57

Controller support in the launcher. Use the D-pad or left stick to move through the menu and A/Cross to select Play, build options, or updates.

To play on Windows: download PunchOutWii--QilinRecomp-0.23.2-windows-x64.zip below, unzip it, open the folder and double-click Play Punch-Out.exe. Choose your extracted disc's folder (or drag it onto the window); the first start builds the game from it in a few minutes. You need your own copy of the game, the Europe/Australia release (disc R7PP01, revision 1), extracted into a folder with Dolphin (Properties, Filesystem, Extract Entire Disc). Changes: CHANGELOG.md.

On a Mac (macOS 14.5 or newer, Apple silicon or Intel): download PunchOutWii--QilinRecomp-0.23.2-macos.dmg, open it and drag Punch-Out.app onto Applications, then open it. The app isn't signed by an Apple developer account, so the first time macOS stops it: open System Settings, Privacy & Security, click Open Anyway beside "Punch-Out was blocked" and confirm; macOS asks only once. The game is compiled with Apple's own compiler: if the Mac doesn't have Apple's command line tools yet, the app offers Apple's installer.

Punch-Out!! QilinRecomp 0.23.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 15:02

To play on Windows: download PunchOutWii--QilinRecomp-0.23.1-windows-x64.zip below, unzip it, open the folder and double-click Play Punch-Out.exe. Choose your extracted disc's folder (or drag it onto the window); the first start builds the game from it in a few minutes. You need your own copy of the game, the Europe/Australia release (disc R7PP01, revision 1), extracted into a folder with Dolphin (Properties, Filesystem, Extract Entire Disc). Changes: CHANGELOG.md.

On a Mac (macOS 14.5 or newer, Apple silicon or Intel): download PunchOutWii--QilinRecomp-0.23.1-macos.dmg, open it and drag Punch-Out.app onto Applications, then open it. The app isn't signed by an Apple developer account, so the first time macOS stops it: open System Settings, Privacy & Security, click Open Anyway beside "Punch-Out was blocked" and confirm; macOS asks only once. The game is compiled with Apple's own compiler: if the Mac doesn't have Apple's command line tools yet, the app offers Apple's installer.

Punch-Out!! QilinRecomp 0.23.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 12:00

To play on Windows: download PunchOutWii--QilinRecomp-0.23.0-windows-x64.zip below, unzip it, open the folder and double-click Play Punch-Out.exe. On Linux: PunchOutWii--QilinRecomp-0.23.0-linux-x86_64.tar.gz, or -linux-arm64.tar.gz for ARM computers such as a Raspberry Pi 4 or 5 (64-bit Raspberry Pi OS only); unpack it and double-click Play Punch-Out. Choose your extracted disc's folder (or drag it onto the window); the first start builds the game from it. You need your own copy of the game, the Europe/Australia release (disc R7PP01, revision 1), extracted into a folder with Dolphin (Properties, Filesystem, Extract Entire Disc). Changes: CHANGELOG.md.

On a Mac (macOS 14.5 or newer, Apple silicon or Intel): download PunchOutWii--QilinRecomp-0.23.0-macos.dmg, open it and drag Punch-Out.app onto Applications, then open it. The app isn't signed by an Apple developer account, so the first time macOS stops it: open System Settings, Privacy & Security, click Open Anyway beside "Punch-Out was blocked" and confirm; macOS asks only once. The game is compiled with Apple's own compiler: if the Mac doesn't have Apple's command line tools yet, the app offers Apple's installer.

v0.20.0: a Windows download that needs nothing installed, as APB's

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

A Windows download that needs nothing installed, as the APB recomp has.

Added

  • The Windows download (tools/player-kit, built by .github/workflows/player-kit.yml on every push, and attached to a GitHub Release for a version tag): PunchOut-QilinComp-<version>-windows-x64.zip, 78 MB. Unpack it and double-click Play Punch-Out.bat: the first time it asks for the extracted disc folder (checking it's the supported build), lifts its main.dol and compiles it with the bundled compiler (LLVM-MinGW 20261104, the same pinned release as APB's), then starts the game; after that it starts at once. It holds everything but the game's own code, prebuilt: qilin.exe, the library plan, and the runtime, renderer, host layer, SDL3, Dear ImGui and volk merged into libpunchout_kit.a. Nothing made from the game is distributed.
    • Checked here: the download built from scratch; play.ps1 (run under PowerShell 7 with a cross compiler) lifted the game, compiled the 35 files and linked Punch-Out.exe (50 MB; Windows system DLLs only; 16 MB stack) in 2 min 48 s on 8 cores; a second start is immediate; an update that doesn't change the game's code takes 3 s; a folder without sys/main.dol, and a main.dol of another build, are refused with the reason. Wine crashes in this sandbox, so the .exe files weren't run here.
  • From the source, double-click: Play Punch-Out.bat (builds the first time, then starts the game) and Update Punch-Out.bat (pulls, rebuilds what changed, starts it), through tools/build-punchout.ps1, which finds Visual Studio's CMake and Git itself and remembers the disc folder.

Changed

  • qilin lift leaves a file whose text is unchanged alone, so a rebuild after an update recompiles only what changed.
  • main.cpp declares the lifted code's tables itself instead of including the generated functions.hpp, so the runtime builds without the lifted code (the download's prebuilt part).
  • Fixed for Clang: a missing <cstdlib> in display.cpp and an unused table in settings.cpp.

v0.19.0: whole-disc code audit; two gaps it found, fixed

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

A whole-disc audit: is every byte of the game's code found? (docs/code-analysis.md, "The whole-disc audit".)

Fixed

  • exit would have stopped at an unanswered call. MSL's stdin/stdout/stderr hold __read_console and __close_console, in the dropped debugger stub; exit's __close_all calls the latter through a pointer. They, and the four host-file procedures fopen stores, are replaced by what they return with no debugger (an I/O error).
  • Four Balance Board functions were classed as VI's and not lifted (80215B90–80215FF8: the weight maths and two WPAD callbacks). Lifted now: 11,672 functions lifted, 1,630 replaced, 185 dropped, 0 stubs.

Added

  • check_replacements.py --dol checks function pointers too: every function whose address lifted code builds, and every one a data word points at. 0 unanswered now.
  • qilin coverage --list lists the dead runs (712 words in 360 runs). An independent scan confirms no branch, data word or built address points at any of them.
  • The disc's file table has no other executable (no .rel, .dol, .elf), the DOL has no module linker, and the game never invalidates the instruction cache: main.dol is all the code.

v0.18.1: use controllers connected before the start, and say what was found

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

Fixed

  • Controllers already connected when the game starts are used. The display opened a pad only when SDL announced one being added; it now opens the first one at start-up too, and another takes over when it's unplugged. Controller input is taken whichever window has the focus (the console the game was started from often keeps it).
  • The console says what it found: each controller SDL sees (name, vendor, product, and whether SDL knows its layout), the one being played with, the first button press from it, and disconnections. PUNCHOUT_INPUT_LOG=1 logs every change of the buttons.
  • qilin_padtest: a virtual Xbox controller, connected before the window and another later, must reach the game (skips without a display).

v0.18.0: settings menu, picture looks and press-to-bind controls

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

Enhancement options, with the same settings menu, file and data folder as the other Qilin recomps (BeatTheBeat and APB).

Added

  • The settings menu (Dear ImGui, pinned to the commit BeatTheBeat uses): F1 or Esc, or a controller's Back and Start together. It pauses the game (the guest parks at the next retrace and its clock stops) and saves on closing. A hint says how to open it for the first 8 seconds. Pages:
    • Controls: set each Wii Remote button by pressing: Add, then a key, a pad button or a click. An input on another button moves over (and says so); click one to remove it; Back to the defaults. Rumble on or off.
    • Display: full screen and which display; the picture's size (whole multiples, fit, fill); smooth or sharp; vsync; the enhancement preset, internal resolution (from the next start) and anisotropic filtering (at once); the graphics device (from the next start). Look at the picture hides the menu until a key.
    • Game: language, widescreen or 4:3, mono or stereo, as the game reads them from the Wii's settings; about; quit.
  • Picture looks: plain, or a CRT television (raster lines on the console's lines, adjustable scanlines and phosphor stripes; after APB's shader). The window now draws the picture with a shader pass instead of a copy, so the menu draws over it.
  • Anisotropic filtering (1-16x, where the GPU has it) for the game's filtered textures.
  • Pad buttons LB, RB, LT, RT, L3 and R3 can be bound.
  • F11 or Alt+Enter switch borderless full screen.

Changed

  • The settings file is punchout.ini with [display], [controls] and [console] sections and presets (original, low-end, desktop), as BeatTheBeat's. v0.17.0's settings.ini is carried over once and kept as settings.ini.old.
  • The data folder is qilin/punchout in the per-user application data (Windows: %LOCALAPPDATA%\qilin\punchout), as the other recomps'. The old %APPDATA%\Qilin\PunchOut-QilinComp (saves, pipeline cache) is moved there on the first run.
  • HOME's key is H; Escape opens the menu. Escape, F1 and F11 can't be bound.
  • The window's vsync can be turned off (mailbox, or immediate where there's no mailbox).

v0.17.0: decode and record the GPU's commands on their own thread

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

The GPU's command stream is decoded and recorded on a thread of its own.

Changed

  • A GPU thread. The guest's thread now only queues the write-gather pipe's bursts (still writing the CPU's FIFO in memory, as before); a separate thread decodes them and records the frames, as the console's GPU works beside its CPU. The game's own thread no longer pays the ~13 ms a fight frame that recording costs, so on a machine with cores to spare (the Raspberry Pi 4 has four) the two run in parallel.
    • Draw-done and token interrupts come when the GPU thread reaches those commands, as on the hardware; a guest thread asleep waiting for one is woken then (wake_idle), not at the next timer.
    • The queue is 16 KB, about the hardware's lag. With 1 MB the decoder fell whole draws behind and read vertex arrays and matrices the game had already rewritten: fight frames were visibly corrupt. At 16 KB a scripted run from the title to a knockdown in round 1 is clean.
    • PUNCHOUT_GPU_THREAD=0 decodes on the guest's thread, as before.
    • In this session's 2-core sandbox the software GPU takes the cores, so the frame rate is unchanged here (34-39 frames per 5 s in a fight); the gain needs spare cores.

v0.16.0: recorder CPU per fight frame halved (26 -> 13 ms)

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

The recorder's CPU time per fight frame halved: 26 ms to 13 ms (on this session's Xeon core; a Raspberry Pi 4 core is roughly 3x slower).

Changed

  • A compact vertex layout. Draws without tangents, binormals or more than two texture coordinates (and none sent before: emboss texgen reads the last) store 60-byte vertices instead of 132, so less to write, upload and fetch. The renderer feeds the attributes they lack from a stride-0 binding of zeros, which is what the shader sees anyway. PUNCHOUT_FULL_VERTICES=1 forces the full layout; the render test runs both ways (a planted bug in the compact path fails it).
  • Vertex formats are compiled to steps once per primitive, and indexed arrays resolved to a host pointer and a bound, so a vertex runs only its format's attributes (23% fewer instructions in a decode benchmark).
  • Drawn frames are reused. A fight frame's vectors hold 10-20 MB; they were allocated fresh each frame and regrown, with page faults and copies. The renderer now hands frames back (recycle_frame) and the recorder clears and refills them.
  • load_single keeps the rare denormal case out of line, so the common path inlines into the lifted code.

v0.15.0: specialised pixel pipelines; no image churn in fights

Choose a tag to compare

@Qilin1066 Qilin1066 released this 21 Nov 01:56

No game data is included, and none ever will be: you need your own copy of the game (see the README).

Efficiency for weak hardware: pixel shaders specialised to each draw, and no GPU image churn in fights.

Added

  • Specialised pixel pipelines. The ubershader interprets the TEV registers for every pixel, which is what a weak GPU (the Raspberry Pi 4's) can least afford. Each draw's TEV shape (70 words: stage counts, indirect commands, orders, combiners, konst and swap selects, the Z-texture mode, the alpha-test functions; colours stay dynamic) now gets a pipeline with those as specialisation constants, from a build of the same shader per stage count (kGxFragStages1-16), so the driver folds every decision away and compiles only the stages the draw has.
    • Compiled on a worker thread; the ubershader draws until each is ready, so there's no stutter. The Vulkan pipeline cache goes to pipelines.bin in the user folder.
    • Measured on a fight under a software GPU (lavapipe, 2 cores): GPU time per frame 250-307 ms → 126-154 ms, frames per 5 s 16-20 → 31-37. On the no-Mii dialog: 66 → 37 ms.
    • A fight uses about 195 such pipelines. Per-stage-count modules took a pipeline's compile from 14 s to about 2 s on lavapipe (LLVM); GPU drivers are much faster, and they keep them in the cache.
    • punchout_render_test runs on both paths with the same expectations (two new ctest entries).
    • PUNCHOUT_UBERSHADER=1, PUNCHOUT_SPECIALIZE_SYNC=1 and PUNCHOUT_SPECIALIZE_FROM=<seconds> for comparing them.
  • PUNCHOUT_PROFILE=<file> (Linux): a built-in SIGPROF sampler, for machines without perf or ptrace, and tools/analysis/profile_report.py to name the hot functions.

Fixed

  • GPU images were destroyed and made again every frame in fights. A fight makes ~75 EFB copies a frame; the spare pool was capped at 64, so each frame's returned images were trimmed and remade (about 9 a frame). The cap now covers the batch being recycled; images unused for two seconds still go. Now 0 a frame.