Case study · native Linux portÉtude de cas · portage Linux natif
A Windows-only port, running on Linux in a day.Un portage Windows, sous Linux en une journée.
Uncharted: The Nathan Drake Collection recompiles its PS4 code and translates the GPU to Vulkan. The build system and the window layer, though, only knew Windows. No Wine, no Proton: a native build.Uncharted: The Nathan Drake Collection recompile son code PS4 et traduit le GPU en Vulkan. Le build et la couche fenêtre, eux, ne connaissaient que Windows. Sans Wine, sans Proton : un build natif.
Supermedo's port is native in the interesting sense: the game's own x86-64 code runs directly, and a Vulkan renderer draws it. Nothing about that is Windows-specific. But everything around it was: an MSYS2/CLANG64 build, an Uncharted.exe, a Win32 window shim, and a launcher that only started on Windows. On Linux, the only route was Wine or Proton — running a native Vulkan renderer through a translation layer it did not need.Le portage de Supermedo est natif au sens intéressant : le code x86-64 du jeu tourne directement et un moteur Vulkan le dessine. Rien là-dedans n'est propre à Windows. Mais tout ce qui l'entoure l'était : un build MSYS2/CLANG64, un Uncharted.exe, une couche fenêtre Win32 et un lanceur qui ne démarrait que sous Windows. Sous Linux, la seule voie était Wine ou Proton — faire tourner un moteur Vulkan natif à travers une couche de traduction dont il n'a pas besoin.
0lines of Linux build support before the PRligne de build Linux avant la PR
3games in the collection (U1, U2, U3)jeux dans la collection (U1, U2, U3)
2pull requests, one day of workpull requests, une journée de travail
Running on LinuxSous Linux
Drake's FortuneAmong ThievesDrake's Deception
CinematicsCinématiques
The original projectLe projet original
A native PC port of the trilogy by Supermedo. It needs your own copy of the game.Un portage PC natif de la trilogie par Supermedo. Il faut votre propre copie du jeu.
What I builtCe que j'ai fait
Linux build & runBuild & exécution Linux
run-linux.sh, plus build.sh and CMake changed to find Vulkan, SDL3, FFmpeg and MiniUPnPc through pkg-config instead of MSYS2 paths.run-linux.sh, et build.sh et le CMake modifiés pour trouver Vulkan, SDL3, FFmpeg et MiniUPnPc via pkg-config au lieu des chemins MSYS2.
GTK4 launcherLanceur GTK4
Pick the game folder, tune settings, press Play — a native window instead of a terminal command.Choisir le dossier du jeu, régler, jouer — une fenêtre native au lieu d'une commande.
Two runtime fixesDeux correctifs runtime
Fibers, threads and PS4 services that behaved differently on glibc, and two renderer bugs below.Fibers, threads et services PS4 qui se comportaient autrement sous glibc, plus deux bugs de rendu ci-dessous.
The two fixes upstream still doesn't haveLes deux correctifs que l'amont n'a toujours pas
vk_presenter.cpp
The UI was tiled into quartersL'interface était découpée en quatre
The presenter resized its render target to the window. Uncharted composes its HUD at the game's internal resolution, so a smaller window split the interface into tiles. The frame now stays at the game's output size and the final blit does the scaling.Le presenter redimensionnait sa render target à la fenêtre. Uncharted compose son HUD à la résolution interne du jeu : une fenêtre plus petite découpait l'interface en tuiles. L'image reste maintenant à la taille de sortie du jeu, et le blit final fait la mise à l'échelle.
gpu/shim/window.cpp
The session locked with a padLa session se verrouillait à la manette
Controller input does not reset the desktop idle timer. After a few minutes the session locked and the game window stopped being mapped. SDL_DisableScreenSaver() at start-up fixes it.L'entrée manette ne réinitialise pas le minuteur d'inactivité du bureau. Au bout de quelques minutes la session se verrouillait et la fenêtre du jeu cessait d'être mappée. SDL_DisableScreenSaver() au démarrage corrige le problème.
What happened nextLa suite
Both pull requests openedLes deux pull requests ouvertes
#565 and #566, from a fork. Test suite: 84 tests pass, 14 skipped. The game starts from the Linux build.#565 et #566, depuis un fork. Suite de tests : 84 passent, 14 ignorés. Le jeu démarre depuis le build Linux.
Upstream shipped its own Linux buildL'amont publie son propre build Linux
Another contributor landed an equivalent Linux path (commit c217d5d: docs/LINUX_BUILD.md and run.sh), and the project already had a GTK4 launcher of its own since 2026-10-03. So Linux is now supported natively, by upstream — my build patch and my launcher are superseded.Un autre contributeur a livré une voie Linux équivalente (commit c217d5d : docs/LINUX_BUILD.md et run.sh), et le projet avait déjà son propre lanceur GTK4 depuis le 2026-10-03. Linux est donc supporté nativement, par l'amont — mon patch de build et mon lanceur sont supplantés.
Status today, stated plainlyL'état aujourd'hui, dit franchement
Both PRs are still open and now conflict with upstream; neither was reviewed. What survives is small but real: the two renderer fixes in this page, which upstream does not have as of 0.3.14.Les deux PR sont toujours ouvertes et entrent en conflit avec l'amont ; aucune n'a été relue. Ce qui survit est petit mais réel : les deux correctifs de rendu de cette page, absents de l'amont en 0.3.14.
Why publish a superseded patch? Because the interesting part of this project is not the diff. It's how fast an AI-assisted agent could read a hundred thousand lines of C++ and C, find the four places that assumed Windows, write a build path and a launcher, and run the test suite — one day for work that usually takes a week of digging. Then upstream solved it too, and that is the honest ending.Pourquoi publier un patch supplanté ? Parce que l'intérêt de ce projet n'est pas le diff. C'est la vitesse à laquelle un agent assisté par IA a pu lire une centaine de milliers de lignes de C++ et de C, trouver les quatre endroits qui supposaient Windows, écrire un build et un lanceur, et lancer la suite de tests — une journée pour un travail qui demande d'ordinaire une semaine de fouille. Ensuite l'amont l'a résolu aussi : c'est la fin honnête.
Run it on LinuxLe lancer sous Linux
The Linux route now lives upstream. These are the steps from my PR, if you want that exact build.La voie Linux est maintenant dans l'amont. Voici les étapes de ma PR, si vous voulez ce build précis.
Install Vulkan, SDL3, FFmpeg and MiniUPnPc development files, then build.Installez les fichiers de développement Vulkan, SDL3, FFmpeg et MiniUPnPc, puis compilez.
bash build.sh
Point it at your game folder and start.Indiquez votre dossier de jeu et lancez.
./run-linux.sh /path/to/Game
Start one game directly (U2 or U3).Lancer directement un jeu (U2 ou U3).
BB_EXE=u2 ./run-linux.sh /path/to/Game
Or use the GTK4 launcher (needs PyGObject and libadwaita).Ou utilisez le lanceur GTK4 (PyGObject et libadwaita requis).