by drnick1 · 1y ago · 0 comments
At this point game devs should just discontinue the native version if they aren't going to properly support it and just make sure the game runs flawlessly on Proton.
500 comments https://news.ycombinator.com/item?id=32471624
The syscall abi has been stable for decades, and any game that included glibc or compiled with musl keeps running just fine?
https://github.com/ValveSoftware/steam-runtime
https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/b...
Edit: Valve actually have some very interesting documents about their compatibility environments:
- https://github.com/ValveSoftware/steam-runtime/blob/master/d...
- https://gitlab.steamos.cloud/steamrt/steamrt/-/blob/steamrt/...
- https://gitlab.steamos.cloud/steamrt/steamrt/-/blob/steamrt/...
- https://gitlab.steamos.cloud/steamrt/steamrt/-/blob/steamrt/...
https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/b...
I hope they'll drop 32-bit support in the runtime with the next major version. More and more distributions are dropping it or are thinking about it. Any new game should really use 64.
The games by Loki Software are still running great for me. It's a matter of skill and discipline. SDL, OpenGL and alike are very stable.
The problems start when developers start to use lots of small third-party libraries and depend on particular versions of them, but IIRC on Windows it's also solved by simply shipping all the libs with the game.
Another option is to dynamically link against an old glibc version, the Zig toolchain makes that easy also for C/C++ projects.
There are many issues with libraries breaking backwards compatibility on Linux (like pretty much all GUI ones) but glibc, X11, OpenGL (and to some extent SDL - it used to not be like that, but in recent years they made "SDL1->SDL2" wrappers and there is or will be a "SDL2->SDL3" wrapper too) are fine. I'm not sure about Vulkan but i'd guess that is fine too.
I wanted to port my semi-minimal 3D ECS game engine ~(10k lines) to a minimal distro, so I decided on Alpine after figuring Arch is actually very bloated on comparison.
I had to recompile even the single-executable command line prebuild system (premake5) for musl. Musl is a more minimal version of libc.
Got it to work fine after that, building a few components from source and getting a few like sdl from the distribution's repos. (also had to of course install relevant driver bits to get opengl working as the distro is truly minimal)
https://www.forbes.com/sites/jasonevangelho/2024/08/21/linux...
The same, as I understand it, cannot be said about the Linux-native API. SteamOS may have stabilized it somewhat, but there's a reason why the readme on their site for this basically says "it may run on Linux proper, but we're not supporting it except on Steam Deck"