Luigi's Mansion 3 static recomp research runs natively on Linux
A research project recompiles Luigi's Mansion 3 (Switch, version 1.4.0) to run natively on Linux with Vulkan. You need your own copy of the game.
An independent research project called lm3-recomp translates Luigi’s Mansion 3 for the Nintendo Switch (version 1.4.0) to run natively on Linux with a Vulkan renderer. It has no connection to Nintendo and includes no game files. You need your own legally bought copy.
This project uses static recompilation. The game machine code translates to C ahead of time on your PC and compiles there. There is no CPU interpreter, no JIT, and no Switch firmware. The project provides its own runtime for system libraries, graphics, audio, video, input, and file systems.
The author tested on CachyOS Linux with an NVIDIA RTX 3090 and a 3840 x 2160 display at 120 Hz. Testing ran from a new game through the hotel opening, the basement, and Professor E. Gadd’s lab without crashes or missing shaders. With resolution_scale = 2.0 and frame_rate = 120, basement rooms ran at 104 to 120 fps. Movies play through FFmpeg, gyro aiming works with a Steam Controller, and save thumbnails render on the file select screen. Automated runtime checks pass 81 of 81 tests without game files.
Later areas of the game, AMD and Intel GPUs, the Steam Deck, Windows, macOS, and versions other than 1.4.0 are untested. Online play and DLC are unsupported. Setting dynamic_resolution = on causes black frames the first time each size is used, so leave it off. Help opens in your web browser instead of the game window.
You supply your own files, and output builds into a build/ folder on your PC. Back up your saves, as the software is experimental.
