Skip to content

Discpress v2.0.1

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Nov 08:21
Discpress: convert, verify, and prep your retro discs right in your browser. Offline retro disc studio supporting CHD, CSO/ZSO, and Xbox XISO.

Discpress 2.0.1 is a maintenance, performance, and verification follow-up to 2.0.0: it fixes two real throughput regressions caught by cross-version benchmarking, adds automatic idle memory reclamation for warm worker pools, pins the remaining SIMD CD-audio and worker-pool test coverage, and publishes interleaved v1.8.2 → v1.9.0 → v2.0.1 speed and peak-RSS receipts.

Get it

  • ⬇ discpress.html (about 3.2 MB): the whole app in one file you keep. If you use the downloaded file, download it again for this version.
  • 🌐 powerbeef.github.io/discpress: nothing to download, and the way to convert big games on iPhone and iPad. It updates itself.

What changed

  • DVD --codecplan PCM probe fix (up to 9.6% faster than 1.9.0, ~25–33% faster than 2.0.0): replaced the simple autocorrelation probe in chdcodec.cpp — which false-triggered on 43.3% of non-audio DVD hunks (ASCII text and 8-bit ramps) — with a zero-centered stereo consecutive-pair probe across 8 regions (LE & BE). False positives on bench-dvd.iso drop from 43.3% to 0.0%, while real audio detection improves (piano.bin 84.0% → 99.1%, codec mix.img 15.5% → 29.0%). Never runs in Tier-R default mode.
  • Faster ARM64 & baseline WebAssembly LZ matching: replaced wasm_i8x16_bitmask short-match loops in LzFind.c and deflate.c (which expand to 7–8 NEON instructions per check on Apple Silicon / mobile ARM64) with 8-byte little-endian i64 XOR + ctzll under #ifdef __wasm__, improving both SIMD and non-SIMD builds while staying bit-exact.
  • Balanced 4-thread CD helper batching: aligned worker.js's halfHunks batch calculation with chd.cpp's 256-hunk work-buffer rounding so 4-thread CD jobs split each 128-hunk half-buffer into 8 balanced 16-hunk batches instead of 5 uneven batches ([26, 26, 26, 26, 24]).
  • Warm worker pool idle-reap timers: idle coordinator and helper workers now terminate automatically after 60 s on desktop (20 s on mobile) and on pagehide, freeing WebAssembly linear memory once a batch finishes while keeping sequential jobs warm.
  • Expanded test coverage & documented benchmark receipts: added explicit SIMD vs. non-SIMD CD-audio FLAC parity (piano.cue) and warm worker pool reuse, idle-reap, and memory-cap eviction tests in tests/ui/fallbacks.spec.js, and recorded interleaved v1.8.2 → v1.9.0 → v2.0.1 browser throughput and peak-RSS benchmarks in docs/chd/measurements.md.

Interleaved benchmark receipts (v1.8.2 → v1.9.0 → v2.0.1)

Measured in headless Chromium (SIMD, 12-core Apple Silicon, bench-cd 64 MB / bench-dvd 128 MB, all 3 versions interleaved per workload; 16/16 v2.0.1 outputs independently verified byte-identical to native chdman):

Workload (4 threads) v1.8.2 v1.9.0 v2.0.1 Speed vs 1.9.0 Peak RSS vs 1.9.0
bench-cd default 2.10 s · 696 MB 2.08 s · 657 MB 2.08 s · 566 MB parity −91 MB (−14%)
bench-cd plan 1.22 s · 658 MB 1.20 s · 631 MB 1.18 s · 559 MB −1.7% faster −72 MB (−11%)
bench-dvd default 4.43 s · 659 MB 4.37 s · 679 MB 4.30 s · 563 MB −1.6% faster −116 MB (−17%)
bench-dvd plan 2.91 s · 683 MB 2.93 s · 677 MB 2.65 s · 565 MB −9.6% faster −112 MB (−17%)

With the default Universal target and Smallest compression, CHD files remain byte for byte identical to MAME 0.289 chdman.


Discpress is free and open source under the BSD 3-Clause license. See the README for help and the FAQ.