this post was submitted on 04 Oct 2023
11 points (100.0% liked)

Luanti community

801 readers
1 users here now

Luanti is an infinite-world block sandbox game and a game engine, inspired by Infiniminer, Minecraft and the like.

The community is about the great and open source sandbox game writed in Lua, Luanti.

Feel free to call players for a multiplayer game or publish your project of a mod and everthing related.

Download the game. Check out the wiki.

founded 4 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] Dirk@lemmy.ml 1 points 2 years ago (1 children)

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.com 1 points 2 years ago (1 children)

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?

[–] Dirk@lemmy.ml 3 points 2 years ago* (last edited 2 years ago)

I set the options because I had issues with screen tearing when moving around windows. It’s a very old setup, though.

  • Enabling ForceCompositionPipeline and TripleBuffer pevents screen tearing on my machine when moving windows around
  • Disabling AllowIndirectGLXProtocol is just a performance option. Indirect GLX protocol is slower.

Full options for the driver are available here: http://http.download.nvidia.com/XFree86/Linux-x86_64/535.113.01/README/xconfigoptions.html

Edit Here’s an exhaustive article on the DRM. It basically manages what and when applications can have access to the GPU instead of the applications “fighting” over it.