Setting up Sunshine and Moonlight for high performance game streaming on Linux

  • g0nz0li0@piefed.social
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    2
    ·
    14 hours ago

    Sunshine worked brilliantly under Windows 11, but unfortunately on Linux it lacks the ability to encode the video stream using my RX 7800 XT and microstutters like crazy.

    • inclementimmigrant@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      4 hours ago

      I guess the question is did you set up VA-API and do you have an processor with integrated graphics?

      When I set my instance up, I had to do just a bit of ID’ing since my processor/MB has a iGPU at device 0 that was for debugging purposes and wasn’t going to be up to snuff for encoding.

      • g0nz0li0@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 minutes ago

        Yes I do have VA-API and no iGPU, so there wasn’t an easy fix.

        I also see the same issue on Bazzite and CachyOS, and the same issue using Apollo and Sunshine. I’ve also deeply investigated network issues as the cause but I think that was a red herring.

        Windows was fine out of the box and has specific AMD gpu codexes that the Linux build doesn’t have (I assume proprietary?) so that seems the most likely cause.

    • ☂️-@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 hours ago

      is the output of the log (in the sunshine configurator web page) showing any codec errors? give that a read and report back to us with more info.

      i had a similar problem before and it was related to permissions and how it was installed. the sunshine packages are finnicky as fuck on linux.

      • g0nz0li0@piefed.social
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 minutes ago

        No output errors at all. It actually runs at high frame rates and high resolution. No matter what res or frame cap or bandwidth limit it will microstutter in predictable ways :(

        I’ve tried Sunshine and Moonlight, on both Bazzite (pre-installed and configured) and CachyOS (pacman and AUR).

    • Coleslaw4145@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      7 hours ago

      I use Sunshine+moonlight to stream from my Linux desktop (7900xtx) to my Steam Deck and it works great. Even AV1 streaming works.

      • FauxLiving@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        8 hours ago

        It works fine on my 7800XT.

        They’re just confusing ‘This isn’t working for me’ with ‘This isn’t working for Linux’

        • g0nz0li0@piefed.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          9 minutes ago

          Dual booting Windows and it works fine there, and there’s definitely encoders not present in Linux that are in windows.

          Open to suggestions, or are you just here to have strong opinions about things?