Hi all,

I recently installed Debian 12 on my Lenovo Legion 5 Pro, and am using the GNOME desktop (x11). From time to time I play a game called survev.io . It’s a browser battle royale game, not hard on graphics.

I have an Nvidia rtx3060 and have the proper drivers installed. I checked using nvidia-smi and Firefox is using the Nvidia gpu.

The issue is that the game runs smoothly until I press a button or move the mouse. Then the framerate decreases significantly and it becomes unplayable.

I already tweaked the following settings in Firefox to no avail:

  • gfx.webrender.all = True
  • enabled hardware acceleration
  • layers.acceleration.force-enabled = TRUE
  • gfx.x11-egl.force-enabled = true

And now I’m out of ideas. The game itself isn’t too important to me, but other browser games do the same, so it’s a wider issue I want to solve.

Any ideas on how to resolve this?

  • Synapse@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    1 day ago

    Have you tried running in a Wayland session if you have the same issue ? I am not so sure, but I think GPU acceleration is only really working with Firefox in Wayland. Also, check which version of the Nvidia driver you have, maybe there is something newer you can use from the backports repository.

    • sykaster@feddit.nlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      I don’t have experience with wayland yet, so I’ll need to check if it’s available on my installation. Do you now how I can run Firefox in wayland?

      The drivers are the latest officially supported Debian ones, they should not be the main issue here. But I can give it a look, thanks!

      • Domi@lemmy.secnd.me
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        As of version 121, Firefox defaults to Wayland if your session is running Wayland.

        Might want to try in a fresh profile since you made config changes.

        • sykaster@feddit.nlOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 day ago

          I checked in about:support and Firefox is using x11, so maybe wayland isn’t installed

          • Domi@lemmy.secnd.me
            link
            fedilink
            arrow-up
            1
            ·
            1 day ago

            Your entire session has to run in Wayland, you can’t only run Firefox in Wayland.

            Can you run echo $XDG_SESSION_TYPE in your terminal? Does it say x11 or wayland?

            • sykaster@feddit.nlOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 day ago

              It’s x11, when I check my desktop environments I only have gnome and gnome classic

                • sykaster@feddit.nlOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 day ago

                  It seems indeed the nvidia drivers disable wayland. I played around in Firefox settings a bit more and a setting around input delay seems to have fixed it for now. I hope it stays that way. If not, I’ll migrate to chromium