The memory leak of 0.1.19 is fixed: with game 1.8.0 at resolution = 1440, Windows ran out of memory after
10-40 minutes (#467, #961, #967). Racing wheels with force feedback. 2-player split screen renders at the
resolution you chose instead of 2.37 times its pixels. DLSS fixes on 1.8.0 and above 16:9, and fewer black
scenes and frozen menus on GPUs with little VRAM.
Thanks to @aqali1, @Gag21, @amekkaoui, @ViniciusStanula, @SparkDog, @DanVQX, @CodenameDaedelus, @poke760 and
@mitch030504.
Changes
For players
From pull requests:
- #966 by @aqali1: racing wheels, on by default: the wheel steers with its own rotation and lock, calibrated
pedals, paddles to drift and use items, force feedback with road feel, and a calibration in Controls. - #954 by @Gag21: DLSS on 1.8.0 aims at the picture you see, not at the whole output texture.
- #952 by @Gag21: DLSS renders the right share of the screen when the output is wider than 16:9.
- #955 by @Gag21: the performance overlay shows the size the AI upscaler renders at, with its graph.
Ours:
- No more running out of memory on 1.8.0 at 1440 (#961, #967, #467): a recording made every frame was never freed,
~1-2 MB a frame. On a GTX 1050 Ti, 1.8.0 at 1440: 1.77 MB a frame before, 0.20 after (the game's own memory as it
is touched), the same race speed. Photo mode keeps its full frame at 2160. - 2-player split screen renders at the chosen resolution: each half drew at 2.37 times the pixels of 1 and 3-4
players (#868, found by MKW-THWOMP). The overlay is written again by itself at the next start. - No black scene under the HUD at the second race on GPUs with little VRAM: render targets get a reserve of their
own (a sixteenth of the GPU memory, none under 512 MiB as on AMD APUs under Windows; #201). - NVIDIA with full VRAM: no more game memory left without storage (52 per 25-minute Grand Prix on a 4 GB GTX 1050
Ti, 0 now, no GPU cost). - No more freeze in the menu after a race from a lock cycle between textures and uploads (#968).
- The DualShock 4 / DualSense touchpad opens and closes the menu.
- The FPS overlay shows the 1 % and 0.1 % lows of the last 1000 game frames.
For developers
- #960 by @amekkaoui:
MKW_TEXPREgets a size cap (MKW_TEXPRE_MAX_MIB) and the encoder in its file names
(MKW_TEXPREis off by default). MKW_PRIV_LOG=N: every N frames, the C heaps, committed private memory by allocation and heap block size (Windows)
and what the recordings hold; it found the leak above.- The
FATAL: memoryline gives the system's commit charge and limit; an exception nobody handles is logged with its
module and offset on Windows. MKW_TEX_DUP=1counts textures uploaded with the same texels (3 % of the race's 472 MiB repeat); the memory census
gives each type's largest free range.MKW_TRACE=gfxlogs eachnvnDeviceGetIntegerproperty once (it filled a 64 MiB log in 5 minutes).- Off by default:
MKW_SPARSE_SYSMEM=1, terrain tiles in system memory when NVIDIA's VRAM is full; the GPU reads them
over the bus every frame, 44 → 70 ms of GPU a frame on a GTX 1050 Ti. - Shared helpers for the tools (one GitHub API helper, one log reader, one file hash) and a pre-commit that refuses
rewrites of them; the issue bot gives a discussion read as a bug report the issue forms and leaves it open (#944).
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 +xthe 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 (itsexefs/andromfs/, or one.nupor.nxfile) and press Set up. Nothing of the game ships here: the setup builds it on your
machine and downloads NVIDIA'snvdisasmandptxas(pinned by sha256; 84 MB on Linux, 126 MB on Windows) to
describe the shader encoding. - Every package and the
mkw.exein the zip carry a build attestation:gh attestation verify mkw.exe --repo adriadam10/mkw-recompshows 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.