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 🥰

  • SirMino@feddit.it
    link
    fedilink
    English
    arrow-up
    15
    ·
    6 months ago

    that’s interesting, never tried distrobox I have to look into it. thank you for sharing!

    • Telorand@reddthat.com
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      6 months ago

      It’s a practical necessity on immutabile systems. I would also recommend Flatseal and BoxBuddy to manage your various containers, both of which you can get on Flathub.

  • XNX@slrpnk.net
    link
    fedilink
    arrow-up
    8
    ·
    6 months ago

    Whats Bevy development like so far? Really interested in the engine but until theres a gui way to make games I don’t think it will get nearly as much love as Godot has been getting

    • Shatur@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      It’s fun if you like Rust and ECS. API design is very ergonomic and gives you a lot of control.

      But the engine is a bit immature. So I would generally suggest to stick with Godot for now, it’s a great engine as well.

  • LucidNightmare@lemm.ee
    link
    fedilink
    arrow-up
    7
    ·
    6 months ago

    Thanks for the in depth post! We definitely need more competition in the Sims-like area of indie games!

  • Fubarberry@sopuli.xyzM
    link
    fedilink
    English
    arrow-up
    6
    ·
    6 months ago

    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.

    • Shatur@lemmy.mlOP
      link
      fedilink
      arrow-up
      4
      ·
      6 months ago

      I used “Project” to emphasis the the name is temporary. Yes, I also like “Harmonia”, but such game already exists 😢