[Help] "Merge Fellas Unlimited Shake" bug only occurs in Flatpak sandbox

Hi everyone,

I’m new to Flatpak packaging and I’ve hit a strange issue that I’m hoping someone with more experience can shed some light on.

I’m trying to package a small Godot game I’ve been working on. In the game, there’s a mechanic where the player can “merge” with friendly items (I call them “fellas”), which triggers a brief, satisfying screen shake effect.

The Problem:
When I run the exported game natively on my Fedora system, everything works perfectly. However, when I run it inside the Flatpak I’ve built, a bizarre bug occurs. The screen shake triggers, but it gets stuck in an infinite loop. I’ve nicknamed this the “merge fellas unlimited shake” bug because it’s so specific.

This makes me believe it’s not a bug in the game’s code itself, but rather something related to the sandbox environment. Maybe a timing issue, or a resource that the game can’t access properly to stop the effect loop?

Here’s a simplified snippet of my .yml manifest file:

app-id: com.example.mygame
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: mygame
finish-args:
  # Basic permissions
  - --share=ipc
  - --socket=x11
  - --socket=pulseaudio
  - --device=dri
modules:
  - name: mygame
    buildsystem: simple
    build-commands:
      # Simple copy commands for the pre-exported game binary
      - install -D mygame /app/bin/mygame
    sources:
      - type: file
        path: mygame
      # ... other game assets

Any reason you are not using the latest 24.08 runtime?