github adriadam10/mkw-recomp v0.1.23

one hour ago

Small GPUs keep what a race draws in VRAM: render targets and the game's buffers no longer spill over PCIe on 4 GB
cards (about 50 → 33 ms a frame at 1080p on a 3.5 GB card). 1.9.0 no longer crashes at start after updating from
1.8.0
with a .nup: the next setup repairs the folder. The Windows setup no longer stops at spec.py failed,
a 2880p (5K) resolution, the Performance power profile held on Linux while the game runs, saves backed up by
the launcher's update, and fixes for RecompLauncher saves from 0.1.18, the start screen's key bindings and an AMD
menu crash on Windows.

Split screen: still looking for help. If you play 2-4 player split screen, post a logs/mkw.log of a race with
this version, with your CPU and GPU, in #600. If 3-player split screen crashes on Linux for you (#1068), the log of
this version now names the code that touched the page.

Thanks to @v4l3r10, @Frooglemcdoo, @andreknieriem and @louisdibiasi.

Changes

For players

From pull requests:

  • #1091 by @v4l3r10: small GPUs keep their render targets in VRAM. Each memory block gets a priority by what it
    holds (render targets high, textures not used lately low) and a discrete GPU's render target reserve is taken at
    start, so a full card moves cold textures to system memory instead of the targets. On a 3.5 GB card at 1080p a
    race went from a median of 50.3 ms a frame to 33.4 ms (30 fps held). On by default where the driver has
    VK_EXT_memory_priority (MKW_VK_MEM_PRIORITY=0 turns it off).
  • #1092 by @v4l3r10: the game's buffers get their VRAM copy on a full card too: a copy takes free space in blocks
    already allocated before it asks for a new one, so it is no longer refused while the texture pool has hundreds of
    MiB free (3.5 GB card at 1080p: 13.5-17.5 → 10.5-11.3 ms of GPU a frame, the worst frame 666 → 246 ms). On by
    default (MKW_MIRROR_FREE=0 turns it off).
  • #1076 by @Frooglemcdoo: 2880p (5K) as internal resolution in Settings > Display.
    Opt-in: the default stays the original resolution.

Ours:

  • 1.9.0 no longer crashes at start ("reading 0x150") after updating a 1.8.0 folder with a .nup (#1077, #1079,
    #1086, #1095, #1098, #1100): 31 game files change between 1.8.0 and 1.9.0 without changing size, and the setup kept
    the 1.8.0 ones. Now it compares their bytes on a version switch; the first setup after this update checks the game
    files once (a few minutes) and repairs a folder that already has the wrong ones.
  • The Windows setup no longer stops at the shaders step with spec.py failed (#1041, #89): a stray byte in
    NVIDIA's instruction text garbled the capture; the 0.1.22 known issue is gone.
  • RecompLauncher: the save of 0.1.18 or older is back after updating (#1096): since 0.1.19 the game folder moved to
    recompdata without the profile, so the save looked blank. The first start copies the old profile over when the
    new one has no account, and RecompLauncher's backup now covers the whole profile.
  • Updating from the launcher zips every player's saves into backups/ before it replaces the program (#1106).
  • Linux: the Performance power profile is held while the game runs (#1081: 28 → 41 fps on that laptop), through
    power-profiles-daemon; it is let go when the game ends or crashes, or when you pick another profile. Settings >
    Graphics, on by default.
  • Keys can be bound in the start screen's Settings > Controls (#1080); before, only the in-game menu saw them.
  • The new start screen no longer closes (code 3) after resizing the window a few times (#1099).
  • AMD on Windows: opening the menu no longer crashes in amdvlk64.dll (#950, #1103): a failed allocation of the
    menu's buffer skips one frame instead of using freed memory.
  • AMD on Windows: one slow start learns every shader program the driver never finishes (#1084, #1067), not a few
    per start, so the second start is already fast.
  • The shaders the start compiled are saved even when the game closes before its first frame (#1071), instead of
    compiling them again at the next start.
  • HUD at the screen edges: the racers' map icons stay on the minimap after the finish, and an item's icon (the
    blue shell) follows it too (#1093).

For developers

  • #1090 by @andreknieriem: mkw --replay no longer faults on RADV making the zero stand-ins from two threads at
    once.
  • #1102 by @louisdibiasi: the runtime builds without compiler warnings, and CI now fails on one (--werror).
  • #1101 by @louisdibiasi: docs for the shader prewarm without launching the game.
  • #1105 by @louisdibiasi: docs for racing wheel calibration.
  • #1104 by @louisdibiasi: the README points to the maintained roadmap.
  • RecompLauncher's manifest lists 2880p among the resolutions, as the menu does since #1076.
  • MKW_CHAIN_FAST (frame chain on the fast cores of a hybrid CPU, #1081) is off by default: its in-run A/B was
    noise; MKW_CHAIN_FAST=1 turns it on.
  • A block of the texture pool that holds a mirror stays at the used priority (with #1091 and #1092).
  • An untrapped memory fault names the code and its caller (#1068); the log says when a race is split screen, and a
    perf report with one is answered as #600.
  • MKW_ROMFS_PATCHES=0 no longer skips the resolution overlay. tools/github/sigcheck.py measures a known error
    against the reports already fetched; tools/test/launcher_xvfb.sh runs the start screen alone on a virtual
    display.

Tested before publishing

From the packages Actions built for this tag, before publishing:

  • The whole setup from the Linux AppImage (game 1.0.0) ran every step (generate, compile, shaders, warm-up) and ended
    OK.
  • The whole setup from the Windows zip (6-thread Windows PC, game 1.0.0) in about 19 minutes.

Install

  • Linux x86-64, glibc 2.31 or newer (Debian 11, Ubuntu 20.04, SteamOS and later): chmod +x the AppImage and run it.
    The game it builds lives in ~/.local/share/mkw-recomp. On 64-bit ARM (ARMv8.2: Snapdragon 8 Gen 1 and newer), the
    -aarch64.AppImage.
  • Windows 10/11 x64: unpack the zip into a folder and run mkw.exe.
  • Either: a Vulkan 1.3 GPU and about 30 GB free. Open Game files, point it at your own dump of Mario Kart World
    1.0.0, 1.8.0 or 1.9.0 (its exefs/ and romfs/, or one .nup or .nx file) and press Set up. Nothing of the game ships here: the setup builds it on your
    machine and downloads NVIDIA's nvdisasm and ptxas (pinned by sha256; 84 MB on Linux, 126 MB on Windows) to
    describe the shader encoding.
  • Every package and the mkw.exe in the zip carry a build attestation: gh attestation verify mkw.exe --repo adriadam10/mkw-recomp shows it was built by this repository's GitHub Actions. An antivirus that flags it by its
    behaviour (it compiles and loads the game's code) is a false positive: report it to that antivirus.

Updating

From 0.1.5 on, the start screen offers a newer release (Update to vX) and installs it: it downloads it, checks it,
replaces the program and sets up again only what changed; before replacing it, it zips every player's saves into the
game folder's backups/. From an older version, once by hand: Linux, run the new
AppImage; Windows, unpack the new zip over the same folder; then press Set up again (the steps already done are
skipped).

Known issues

Reporting a problem

Open an issue with the bug form and attach the logs: logs/mkw.log (the game), logs/launcher.log (the start screen) and
logs/setup.log (the setup's tools), in ~/.local/share/mkw-recomp on Linux and next to mkw.exe on Windows.

Don't miss a new mkw-recomp release

NewReleases is sending notifications on new releases.