github adriadam10/mkw-recomp v0.1.19

one hour ago

New languages: Vietnamese, Ukrainian, Indonesian, Arabic and Hindi in the game's own texts, with the letters the
game's fonts lack drawn into them (Arabic joined and right to left, Hindi one glyph per syllable). DLSS on Linux.
Faster split screen with NVIDIA on Linux (4 players: 30.7 → ~24 ms a frame on an RTX 3090) and no more sky
flicker in 3-4 players. Photo mode fixed on 1.8.0. Gaming Mode without a keyboard, F5 pause and a mute key.

Split screen: we need your help. 2-4 player split screen is still below the console's frame rate on most PCs
(#600, #641). After a week of measuring we have not found what holds it back: the replay of the game's graphics and
the GPU still run one after the other instead of side by side. If you know Vulkan, GPU drivers or frame pacing, read
#600 and the measurements under For developers below and tell us what you see. If you play split screen, post a
logs/mkw.log of a 2-player race with this version, with your CPU and GPU, in #600.

Thanks to @AngeloAscheri, @louisdibiasi, @v4l3r10, @joske, @amekkaoui, @dung997tb, @Xarishark, @Gag21,
@andreknieriem, @HieiMaster23, @juniorsk88, @NicholasBly, @Melsinus, @andre98king, @devadobe11-pixel, @nullexxx and
@devaxto.

Changes

For players

From pull requests:

  • #948 by @andreknieriem: no more sky and distant scenery flicker in 3- and 4-player split screen.
  • #830 by @Xarishark: RecompLauncher Easy Setup. If you had the game in the install folder, set it up again or use
    Choose game folder.
  • #826 by @AngeloAscheri: Gaming Mode without a keyboard: the start screen's own file browser and Steam's
    on-screen keyboard.
  • #849 by @AngeloAscheri: turbo and freeze from the controller (Select + ZR, ZL, R).
  • #828 by @AngeloAscheri: A on "Set up again" no longer starts the whole setup.
  • #854 by @joske: F5 pauses and resumes the game, like the console's HOME button.
  • #866 by @NicholasBly: a mute key (\, rebindable) and Mute in the Sound tab.
  • #837 by @juniorsk88: a controller keeps working while the window is not focused.
  • #869 by @v4l3r10: faster races (the 2D hooks no longer ask Windows about memory: -12 ms a frame in the replay).
  • #821 by @v4l3r10: less memory on Windows (title: -0.63 GB working set, -1.17 GB commit).
  • #922 by @v4l3r10: fps = auto moves up only when the game really loses time.
  • #886 by @v4l3r10: smoother pacing in immediate mode.
  • #892 by @v4l3r10: frames shown at their slot, not a refresh later.
  • #905 by @v4l3r10: crash fix (network and random-byte reads into frozen memory).
  • #906 by @v4l3r10: crash fix (two threads touching new memory at once).
  • #907 by @v4l3r10: crash fix (a memory check at the top of the address space).
  • #913 by @joske: runs on GPUs without VK_EXT_depth_clip_control.
  • #914 by @joske: runs on Linux with 16 KiB pages (Apple silicon).
  • #946 by @Gag21: the Virtual core gate row shows the right state; its "On" crashed the game at start.
  • #947 by @Gag21: the HDR tone mapper can be picked on the start screen.
  • #951 by @Gag21: Start screen: Always also opens it when mkw is started with no arguments.
  • #843 by @louisdibiasi: the Linux mkw finds its lib/ folder.
  • #888 by @louisdibiasi: Steam shortcuts with odd characters are kept.
  • #890 by @louisdibiasi: incomplete backups of linked folders are refused.
  • #920 by @louisdibiasi: a resolution or shadow size out of range falls back with a warning.
  • #881 by @devadobe11-pixel: DLSS/FSR downloads retry on network errors.
  • #873 by @dung997tb: Vietnamese menus, launcher and setup.
  • #902 by @dung997tb: better Vietnamese game texts.
  • #871 by @dung997tb: the README in Vietnamese.
  • #872 by @dung997tb: the missing Discord label in German.
  • #823 by @andre98king: Italian on/off and option names fixed.

Ours:

  • Vietnamese in the game's own texts, with the ~100 letters the fonts lack composed from their own marks.
  • Ukrainian in the game's own texts (it was a menu language only), with ґ є і ї drawn into the fonts.
  • Indonesian in the menus and in the game's texts.
  • Arabic in the menus and in the game's texts, letters joined and lines right to left.
  • Hindi in the menus and in the game's texts, each syllable drawn as one glyph.
  • 19 menu, launcher and setup texts that showed in English are translated in 17 languages (#792).
  • DLSS on Linux (#788, from @nullexxx's pull request): put libnvidia-ngx-dlss.so next to mkw by hand, as
    docs/project/upscaling.md shows (not downloaded for you yet); its Frame Generation is untested on Linux.
  • MKW_HDR_FORCE=1 turns HDR on in Wayland windows SDL reports as SDR (#788).
  • Faster split screen with NVIDIA on Linux: 4 players from 30.7 to ~24 ms a frame on an RTX 3090 (#641, #893).
  • Split screen: the replay records on 5 threads on CPUs with 12 or more threads (#600).
  • 1.8.0: photo mode and the last pass are no longer cut (#515, #545, #687, #512).
  • DLSS keeps the picture's shape above 16:9 (#893).
  • The setup works from a Linux folder with a space in its path (#904, #859, #898, #840).
  • The setup retries a damaged step with fewer jobs (#434).
  • Downloads trust the right certificates on Windows (#853).
  • No console windows on Windows for the setup, mods and tools.
  • Gyro works when Steam starts the game with Steam Input (#882).
  • Joy-Cons can be kept as two separate controllers (#814).
  • A stuck button no longer leaves the controls dead after the menu (#582).
  • A camera key that echoes the left stick is ignored (#52).
  • The menu says when the GPU's memory is full (#880).
  • A mkw.ini key outside the settings says it is still read (#637).
  • No Logic rate row: above 60 Hz it ran the whole game fast (#817).
  • Black textures on RDNA and Polaris cards fixed (a GPU check meant for GFX9, #708, #815).

For developers

Performance, small and on by default:

  • #867 by @amekkaoui: the GPU encoder's ASTC blocks kept on disk (MKW_TEXPRE) and read off the replay thread.
  • #856 by @amekkaoui: MKW_QUEUE_WAITS=auto, the queue order only while more than one view is drawn.
  • #722 by @AngeloAscheri: profile-guided game code (build.py --pgo): -15 % of the game threads' cycles.
  • Texture slots and views with their own locks (#795, from @devaxto's pull request); host function counters and the
    texture write-back without locks.
  • The GPU starts each big submission ~1 ms earlier in the replay (first part of 16 draws, the uniform snapshot in two
    batches): in a game run only 0.18 ms, not measurable.

Measurements and diagnostics (off by default; the split screen work in #600 starts here):

  • #935 by @HieiMaster23: Windows profiler roles, per-chunk replay times, write-watch cost by consumer and
    MKW_GUEST_PRIO (no change measured).
  • MKW_GPU_SIM (a simulated GPU of a chosen speed), MKW_FENCE_AHEAD, MKW_SHADOW_RACE, tools/run/overlap.py (a
    frame model on a player's log), tools/run/framesim.py (the frame replayed under another cost) and A/B runs that
    state the difference they expect.
  • A hang report no longer calls a wait the kernel ends "slow" (#860, #901).
  • #919 by @louisdibiasi: the present thread's Vulkan setup is checked.
  • #889 by @louisdibiasi: download errors written as UTF-8.
  • #918 by @louisdibiasi: an MSYS2 package cannot write outside its folder.
  • #916 by @louisdibiasi: the no-AVX2 instruction check fails when objdump does.
  • #917 by @louisdibiasi: the no-game-files check covers NSZ, XCZ and NCZ.
  • #844 by @louisdibiasi: the issue bot answers a missing libvpx.so.6.
  • #845 by @louisdibiasi: the issue archive reads UTF-8 on Windows.
  • #846 by @louisdibiasi: the progress tools read and write UTF-8.
  • #847 by @louisdibiasi: comments no longer cite files the repo lacks.
  • #827 by @AngeloAscheri: three stale roadmap lines dropped.
  • #900 by @AngeloAscheri: the roadmap's photo mode and audio lines brought up to date.

Off by default, and why:

  • #899 by @AngeloAscheri: MKW_TEX_PREFETCH=1, textures made ahead of their first draw: a burst in the menus made
    a 1.3 s frame.
  • #911 by @Melsinus: MKW_TEX_RACE_PURGE, textures out of a race dropped so VRAM goes back: fixes the menus on an
    8 GB card after split screen, not yet measured on others.
  • #822 by @AngeloAscheri: MKW_RTKIT=1, sound in real time on Linux: the PC froze once after a promotion, cause
    unknown.
  • MKW_BINDLESS: the GPU costs 17-50 % more, cause not found.
  • MKW_SEG, MKW_SEC_DRAWS, MKW_SCRATCH_MEM: reusable draw segments; slower (replay 16.3 → 18.5 ms), only 25 % of
    segments repeat between frames.
  • MKW_FENCE_EARLY and MKW_EARLY_SUBMASK (on, its base): the game a frame ahead; with a fast GPU it does not gain,
    the game waits for data the GPU writes.
  • A build fix after merging #867 (vk_staging_try defined twice).

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 (Windows PC, game 1.0.0) ran every step and ended OK.

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.