Disclaimer: Someone in the comments pointed out that this affects Nvidia only. I don’t have AMD, so I can’t verify if that’s correct, but likely this is only for fellow sufferers of the Green Nightmare.

I had this issue for months. Randomly, the performance for games would be abysmal (I’m talking 5 FPS in 10yo indie 3D titles). Then it would randomly work again for a few days or weeks until it would become terrible again.

Turns out, the reason for that was that flatpak appears to cause trouble when the system GPU driver is updated, but flatpak update isn’t run. So when I did dnf update (and it updated the Nvidia driver) without running flatpak update afterwards, the performance would suck, until something (or I) ran flatpak update again.

So if the performance in games launched through a flatpak version of a launcher like heroic sucks, run flatpak update.

And if that doesn’t work, run

flatpak install flathub org.freedesktop.Platform.GL.nvidia-575-64-05 org.freedesktop.Platform.GL32.nvidia-575-64-05

(Replace the version with your Nvidia driver version, and in case of AMD, google whatever the appropriate way is to install the drivers for flatpak.)

  • Keegen@lemmy.zip
    link
    fedilink
    English
    arrow-up
    57
    arrow-down
    1
    ·
    5 days ago

    Note: This issue only applies to Nvidia, AMD users can have a completely different versions of Mesa installed on their system and in Flatpak. Nvidia drivers are closed source and they ship both the kernel and userspace drivers as one with no backwards compatibility so Flatpak must always use the exact same version as the system.

      • robolemmy@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        ·
        4 days ago

        I just built a new system and named it gloria_allred because it’s the first time in forever that I’ve used AMD cpu and gpu, so it’s all red.

      • squaresinger@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        9
        ·
        4 days ago

        Sadly, there’s close to no AMD dGPU laptops, at least in my area. And the 3 or so models that exist are wildly more expensive…

        • entropicdrift@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          7
          ·
          4 days ago

          Part of the reason for that is because their iGPUs are actually worth gaming on, see: Steam Deck and both the PS5 and Xbox Series consoles.

          • squaresinger@lemmy.worldOP
            link
            fedilink
            English
            arrow-up
            4
            ·
            4 days ago

            It’s so-so, tbh.

            I looked up the best AMD iGPU, and that seems to be the Radeon 8060S. That one is, from what I can see, about on par with the 4070 laptop. In gaming, it’s a bit worse. In other workloads, it’s a bit better.

            But the cheapest laptop I can find with an 8060S is some HP Zbook Ultra G1a for €2800. I got my Lenovo LOQ with a 4070 for €900.

        • TheGrandNagus@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          4 days ago

          AMD has learned that laptop gamers don’t give a shit about anything that’s not Nvidia. Their dGPU laptop solutions were never desirable for the general market, so they’ve instead started focussing a lot more on stronger APUs.

      • Samueru_sama@programming.dev
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 hours ago

        In this case the issue is with 100% on flatpaks side that they decide to ship and download the entire nvidia driver again instead of using the one of the host. Note both snap and appimage do not do this, they use the nvidia driver of the host.

        There is no reason to have to download the entire nvidia driver again, distros cannot modify it as it is against its license.

        Also even outside of nvidia you are still going to have troubles in games with flatpak if what you are using requires a recent version of mesa