github adriadam10/mkw-recomp v0.1.21

one hour ago

A new controller-first interface to try: a new start screen and in-game menu, with a mod browser, a file
explorer, themes and the release notes inside (off by default: Settings > General > Interface > New (preview)).
4-player split screen ~4.6 ms faster a frame on Windows and no longer stuck at 20 fps after heavy sections with
fps = auto. RX 580 and other Polaris GPUs on Linux no longer crash with the terrain's sparse textures.
Chinese no longer falls back to Japanese. Racing wheel fixes, and a damaged game copy is now caught by the
setup instead of crashing in a race.

Split screen: help keeps coming in. @bytronic-paradox measured #600 on their own machine and sent three of this
version's changes. 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.

Thanks to @anarqz, @bytronic-paradox, @pitah81, @andreknieriem, @HieiMaster23, @RealJohnGalt, @aqali1, @kabeor,
@tchaikov, @mohamedyassine-benmiled and @louisdibiasi.

Changes

For players

From pull requests:

  • #995 by @anarqz: a new interface, made for a controller (start screen and in-game menu): Get Mods with
    GameBanana's details, a file explorer that works in Steam's Gaming Mode, What's new with the release notes, themes
    as mods (theme.ini or a Base16 theme.yaml, guide in docs/themes) and the game's on-screen keyboard. Off by
    default: the classic start screen offers it once (Try it), and Settings > General > Interface switches between
    Classic and New (preview) at once.
  • #1007 by @bytronic-paradox: 4-player split screen ~4.6 ms faster a frame on Windows: the large copies of the
    game's recordings reuse their memory instead of faulting in new pages every frame (about 8,000 → 2,700 page faults
    a frame). On by default.
  • #1013 by @pitah81: fps = auto no longer sits at 20 fps for 30-60 s after each heavy section of a 4-player
    race: the first frames of a 30 fps trial, slower while the CPU's clock comes back up, no longer fail it.
  • #599 by @RealJohnGalt: RX 580 and other Polaris (GFX8) GPUs on Linux no longer crash with sparse terrain
    textures, and the six terrain arrays all fit (#554, #671, #956).
  • #937 by @HieiMaster23: AMD discrete GPUs on Windows keep their clocks up during the game (on by default;
    MKW_GPU_CLOCKS=0 turns it off).
  • #1012 by @kabeor: Chinese shows in the game instead of falling back to Japanese; a Chinese already chosen needs
    no change.
  • #985 by @aqali1: racing wheels let go when the game ends and never push the wrong way; the Thrustmaster T248's
    direction is known, and a wheel whose direction is not measured yet gets no steering force until the menus' test
    finds it.
  • #949 by @mohamedyassine-benmiled: DLSS keeps each view in its quadrant in 3- and 4-player split screen.
  • #989 by @tchaikov: the start screen shows on GNOME Wayland (Linux), where it could stay invisible.
  • #930 by @louisdibiasi: an update's clean-up on Windows no longer stops with an error when the old files are
    still in use, and its Undo copy is kept.
  • #999 by @andreknieriem: crash fix on Linux ("page state 1, not trapped") when an early-read watch met a page
    the game had just thawed or frozen.

Ours:

  • A damaged game copy stops the setup naming the first bad file, instead of crashing when a course loads (#684,
    #404): a packed dump (.nup, .nx) is read back whole once; 1.8.0's 23.5 GB in about 25 s.
  • No crash at Play with a racing wheel on Windows (SDL3.dll, #1004).
  • Frame generation works again on 1.8.0 after character select (#975), and DLSS no longer refuses the split-screen
    race load twice (#949).
  • Started from RecompLauncher, the game writes logs/mkw.log too (#971, #993).
  • A disabled mod's resolution overlay no longer stays in effect (#1009, its cause found by anarqz).
  • The graphics prewarm is skipped only after two starts died in it, not one (#983: a Steam Deck skipped it in 25
    of 36 starts).
  • The memory spill file leaves 2 GiB free on its drive (#806).
  • A wheel whose direction test never succeeds can be inverted by hand (MKW_WHEEL_FFB_INVERT), and the menus'
    test retries every 30 s after three misses.

For developers

  • #973 by @anarqz: plugin API 5 and 6: a plugin's own Dear ImGui overlay, its page in the in-game menu with the
    runtime's setting rows, and a lock that greys out the Hacks settings while a plugin asks for it; the ui extension
    (#995) for mod pages, tabs, home items and toasts in the new interface.
  • #1006 by @bytronic-paradox: per-thread draw statistics (MKW_COUNT_LOCAL, on): -0.4 to -0.5 us a draw on the
    chunk threads.
  • #1005 by @bytronic-paradox: MKW_REPLAY_PAR_DRAW_TIMES=1, MKW_TRACE=draw's stage times on the chunk threads
    (#600's per-thread cost table).
  • #982 by @andreknieriem: the uniform snapshot taken at submit travels with its submission, and can also copy
    vertex and storage buffers (MKW_USNAP_VBUF, MKW_USNAP_SSBO, off by default) for the flicker in 2-player races
    with MKW_UDMABUF=1 (off by default too); off until measured beyond the Steam Machine and the Steam Deck.
  • #1000 by @andreknieriem: that snapshot copies storage and vertex ranges up to 256 KiB, so double-buffered
    per-instance data (trees) fits.
  • #1017 by @pitah81: MKW_TEX_PREFETCH=create, textures created ahead without their upload (off by default: a
    race start's gain is not measured yet).
  • #1014 by @pitah81: a capture replay starts again at the capture's guest layout (MKW_MEM_AT) when the first try
    lands elsewhere.
  • #932 by @HieiMaster23: early-read watches on Windows (MKW_EARLY_READ=3), off there until a 24-kart Grand Prix
    A/B shows a gain.
  • #936 by @HieiMaster23: PGO builds on Windows (build.py --pgo gen, --pgo FILE.profdata).
  • The shadow-map census is taken once by the replay's walk (#600); tools/test/par_sweep.sh replays a capture at each
    chunk thread count.
  • tools/github/symbolize.py names a release DLL's function from a crash line; MKW_PUSH_CONST, MKW_EARLY_READ and
    MKW_SUBMIT_CATCHUP are known mkw.ini keys.
  • #991 by @dependabot: fonttools bumped to 4.69.1.

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 21 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 or 1.8.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. 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.