- cross-posted to:
- bevy
- [email protected]
- cross-posted to:
- bevy
- [email protected]
Bought the device a few days ago and wanted to share the experience of running a Bevy game on it. I developing an open source life simulation game called Project Harmonia. The game is at the prototype stage: you can build walls, place objects and move around, but no no actual gameplay loop.
Bevy engine supports it natively since it’s just a regular x86 with GNU/Linux. So nothing special was needed! I compiled the game via Cargo and it works.
The game runs great. I get stable 90 FPS (90Hz is the refresh rate of the device) consuming only 13.1 W. The UI is a little big and controls aren’t adapted well for gamepads, but I will fix it later.
The console itself is also a nice machine for development. Next I will write about the setup I use.
As you may know, it runs SteamOS with KDE and based on ArchLinux.
Packages mostly mirror official ArchLinux repositories, but there are some additions and everything is compiled by Valve. So you can even install SuperTuxKart or GNOME 😃
Another difference from vanilla ArchLinux is immutable file system. You can make it writable via a single command in terminal, but each update wipes all changes made to the system. Home directory remains untouched.
Because of the immutable filesystem, I decided to try Flatpak. It installs packages into the user’s home directory. Therefore, such apps won’t be removed after an update.
But I faced some limitations due to containerization. For example, the Firefox extension for KeePassXC does not work because apps can’t interact with each other. And it’s not suited for installing stuff like compilers or libraries. So I decided to explore other options.
Next, I tried to create a script that I planned to run after each update. It installs all the packages I need through the system package manager.
But packages on SteamOS are older then in Archlinux. For example, Neovim on SteamOS is 0.9, but on ArchLinux it’s 0.10, so I had to downgrade my configuration. And it causes incompatibilities with AUR. For example, I couldn’t install Crow Translate because of it.
Another problem with such script is that Valve nuked /usr/include
directory to free space. All packages are present, but the folder is missing. It makes sense for a gaming device, but I need it to compile packages from AUR.
It can be solved by reinstalling all packages that put files into /usr/include
. But it causes another problem 😃 Allocated space for /
is limited and you quickly run out of space after restoring headers and installing a couple of packages.
Then I decided to try Distrobox. It creates containers that tightly integrated with the host system. It even comes pre-installed on the Steam Deck.
And I like it a lot! It is very easy to use and combines the advantages of both approaches. All packages will persist across updates and I have access to all packages that I have on my regular PC. Graphical apps look native and can interact with each other.
The game on photos was compiled on the Steam Deck 🥰
In addition to distrobox, the Deck now supports the nix package manager which might be another good option.
Although tbh, I haven’t actually tried nix yet.
Ah, I didn’t know!