Hi! I have been enjoying Minetest immensely these last few days but it is simply unplayable on my PC because it is unable to maintain a stable framerate, be it 30 or 60 fps. Sometimes when viewing giant block structures or sometimes at random times the FPS drops to 24 or less and I tried to lower the rendering distance (I think it’s called differently) but although it does improve, it shouldn’t be fixed if my PC is 100% capable of running it well, and in fact on Windows it runs beautifully.

Specs: RTX 3060, Ryzen 5 5600X, 16GB DDR4, SSD.

I thought it was a problem with my distro (Garuda Linux) so I installed another one (KDE Neon) and it’s exactly the same, I also switched from X11 to Wayland and it’s still the same, I honestly don’t know why this happens but it’s not hardware deficiency, also I tried the git version (via AUR), flaptak and snap, the problem persists,

In Windows it works perfectly without any problem, it runs great and with everything set to maximum but in Linux it is simply unplayable.

I would like to add something important, and it is that in Linux none of the compilations uses the GPU to the maximum, according to nvtop it is being used but in very little measure, and it seems that the CPU does everything.

  • 𝘋𝘪𝘳𝘬
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    Minetest can’t use Wayland if I remember correctly, so it will be run in Xwayland, a special X11 implementation that runs X11 applications in a “wrapper”. This costs performance, so it likely runs worse there.

    Stupid question, but: the drivers are installed and utilized?

    For my GTX 1080 I have this X11 config file:

    $ cat /etc/X11/xorg.conf.d/20-nvidia.conf 
    
    Section "Device"
        Identifier     "Device0"
        Driver         "nvidia"
        VendorName     "NVIDIA Corporation"
        BoardName      "GeForce GTX 1080"
    EndSection
    
    Section "Screen"
        Identifier     "Screen0"
        Device         "Device0"
        Monitor        "Monitor0"
        Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
        Option         "AllowIndirectGLXProtocol" "off"
        Option         "TripleBuffer" "on"
    EndSection
    

    You could also try to add the Nvidia DRM module to your kernel parameters (nvidia_drm.modeset=1).

    • Xirup@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Yep, I am using the latest proprietary drivers available in the Ubuntu repos (535) and I will try what you suggest but what does that do?