github vyanhursky/DefJamFFNY-recomp v0.7.3
Def Jam: Fight for NY — Recompiled v0.7.3

latest releases: v1.2.4, v1.2.3, v1.2.2...
one month ago

v0.7.3 — Texture streaming and Steam Deck input

Smoother HD textures: the packs no longer stall the render thread when they load, and the
fight frame rate with the packs on is back near the packs-off rate on Windows. The Steam Deck
no longer sees each menu press twice.

Changes

  • HD textures stream in the background. Replacement PNGs are decoded and mipped on up to
    three low-priority worker threads, on Windows, Linux and macOS. The render thread only creates
    the texture and copies the finished mip chain in; until a replacement is ready the original
    texture is drawn. RECOMP_TEXTURE_SYNC=1 restores the old synchronous path. On the Steam Deck
    this cut the render-thread texture time from title to main menu from 4.9 s to 0.56 s, and the
    slowest single upload from 348 ms to 24 ms (scripted, packs on).
  • Texture identity on Windows. The game identifies each bound texture by a SHA-256 of its
    bytes. Windows read the clock in 15.6 ms steps, so the 8 ms re-check window expired on nearly
    every bind and each texture was re-read every frame. The clock is now monotonic and
    sub-millisecond, and each texture's re-check backs off: 8 ms while its bytes move, up to 64 ms
    once stable. A texture whose bytes change on three checks in a row is drawn with its original
    texture for up to 500 ms between checks.
  • Texture cache 2 GiB on every platform (was 512 MiB off Linux), so a four-fighter match keeps
    its replacements resident. Set [textures] cache_mb to change it.
  • Presentation pacing and colour upload on Linux and macOS: the frame pacer sleeps to within
    0.3 ms of the deadline instead of spinning, and linear A8R8G8B8 textures convert straight into
    the upload buffer.
  • Steam Deck double input (D100). Under Steam Input the physical Valve pad and Steam's
    virtual gamepad both reported each press. A physical Valve pad is ignored while a Steam virtual
    pad exists, at start-up and on hot-plug. A Steam pad moves up to the lowest free player when
    its player leaves; other controllers keep the player they were given.
  • Logging. RECOMP_TEXTURE_TRACE=1 logs [TEXPACK] every two seconds: replacements uploaded,
    source revalidations and full hashes. [VKPERF] lines show frame cost on the Vulkan renderer (Linux and
    macOS), and [XA2] lines show when the sound device runs dry.

Measured

Windows, Release build, faithful-hd pack, one scripted fight (regress.py --only fight),
presents per 2 seconds (floor 110):

Build Traced Untraced
Before this release (per-bind identity check) 94 (failed) 98 (failed)
v0.7.3 120, minimum 95 120, minimum 106

Packs off, the quick regression (unit tests, three golden frames, one fight) passes 5 of 5.
The Steam Deck figures are scripted measurements on the Deck, recorded in PR #20 (not a play-test).

Known limits

  • The Story tutorial fight on the Steam Deck averaged about 45 fps and was not reproduced by
    script; FFA holds 58 to 60 fps. The new [TEXPACK] and [VKPERF] lines are there to show where
    those frames go.
  • Audio gaps were not verified by ear.
  • The Windows numbers above are from the scripted harness; no owner play-test on Windows has been
    recorded for this release.
  • The Steam move-up for a Steam pad was not run on a Steam Deck with Steam Input; the automated
    input fixture covers the other controllers.
  • The identity cache still costs a SHA-256 for each texture whose bytes change. The next step
    would be write-tracking on guest memory, which is not in this release.

Don't miss a new DefJamFFNY-recomp release

NewReleases is sending notifications on new releases.