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
    37
    arrow-down
    1
    ·
    3 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.

      • squaresinger@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 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…

        • TheGrandNagus@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 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.

      • robolemmy@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 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.

  • LiveLM@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    3 days ago

    At this point you might as well just save the headache and install Heroic directly

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

      Would have been better, but Fedora has Heroic only as Flatpak in their repos. At least as far as I can see.

      • LiveLM@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        3 days ago

        My bad, I should have checked before commenting 🤦‍♂️
        The official Github does list a COPR repo but it seems the last build failed 2 months ago, so it only has version 2.17.2 instead of 2.18…

  • TingoTenga@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 days ago

    Thanks! This is a great tip. I’ve running into this myself and now I will regularly update the flatpacks.

  • ☂️-@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 days ago

    huh, these packages install automatically for me in the nvidia card. i have lutris and steam installed too, which might probably have installed them.

    we should probaby talk to the maintainer of the flatpak if that’s not installed as a dependency for heroic by default.

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

      For me the packages are there too, they are just not updated when I run dnf update without running flatpak update as well, and then they break.

      • ☂️-@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        2 days ago

        yeah that’s the “bug” i was describing. happens exactly like this on apt update too, i have to also flatpak update and reboot for it to work normally again. i have no such problem with amd.