[SOLVED][0.17.79] GPU not used on Linux with official Nvidia drivers

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
targodan
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Dec 22, 2019 9:56 pm
Contact:

[SOLVED][0.17.79] GPU not used on Linux with official Nvidia drivers

Post by targodan »

Hello everyone,

It seems factorio does not use my GPU, when running on Arch Linux with the official Nvidia drivers (installed via "pacman -S nvidia-dkms"]). Before installing the nvidia drivers (running nouveau) it worked fine albeit with slightly lower performance than when I run it in windows (it's a dual boot system). The lower performance is to be expected since I've read time and again that nouveau is slightly slower than the official drivers (hence why I installed them).

I checked with the nvidia-settings and the nvtop tool and can confirm that the GPU utilization and GPU memory usage remain below 8% when the game is running, while my CPU goes to 100% on all 4 cores. Because of this I suspect factorio does not use the GPU at all. The FPS are pretty unplayable at <20 FPS. UPS are stable at 60.

I'm running the latest Arch Linux 64-bit with the zen Kernel "Linux serenity 5.4.6-zen1-1-zen". I tried running steam in different ways (ArchLinux related) via the plain "steam" executable, the "steam-runtime" and the "steam-native" wrappers, all show the same behaviour. The nvidia driver is version 440.44-5, as installed via dkms. I confirmed via lsmod, the nvidia module is loaded while the nouveau module is not loaded.

The game is not modded and the low FPS was observed in a singleplayer game.

Attached, you'll find the screenshot with the requested debug options as well as the logs.

If you need anything else to debug this, let me know. :)
Attachments
factorio.png
factorio.png (3.53 MiB) Viewed 1639 times
factorio-current.log
(4.91 KiB) Downloaded 124 times
Last edited by targodan on Mon Dec 23, 2019 10:20 am, edited 1 time in total.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15884
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.79] GPU not used on Linux with official Nvidia drivers

Post by Rseding91 »

I'm neither the graphics guy nor one of the linux guys but I'm going to speculate and say based off the linux guys in the office having no issues and the fact these "weird X doesn't work right" are always linux users - that the issue isn't anything on Factorios side but an issue with your OS or drivers (or both).

The log has this:
Initialised OpenGL:[1] llvmpipe (LLVM 9.0.0, 256 bits); driver: 3.3 (Core Profile) Mesa 19.3.1
Which might be of help to you.

But, I'll leave this for one of the other guys to move to not-a-bug or 0/1 magic - or wait until you inexplicably get it working in the meantime (that happens a good 9/10 times :D with this linux-related random-thing-isn't-working-right bug reports).
If you want to get ahold of me I'm almost always on Discord.
posila
Former Staff
Former Staff
Posts: 5448
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.79] GPU not used on Linux with official Nvidia drivers

Post by posila »

Hello,

your system is misconfigured. It still uses Mesa as default OpenGL driver, but since nouveau is not loaded anymore, Mesa fallsback to software renderer. You need to configure your system to use nVidia OpenGL instead (or get rid of Mesa entirely)

On my computer, I would unistall mesa-libgl and install nvidia-libgl.
targodan
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Dec 22, 2019 9:56 pm
Contact:

[SOLVED][0.17.79] GPU not used on Linux with official Nvidia drivers

Post by targodan »

Rrriiight. Sorry about that. I found the two problems (my fault).

1. Somehow the bumblebee package snuk in, although I only have one graphics card.

2. I was missing the lib32-nvidia-utils package.

So for anyone coming across this: If you only have one graphics card, make sure the "bumblebee" package is *not* installed, and the lib32-nvidia-utils package *is* installed.

Sorry to bother you and many thanks for the very very fast responses!

Also thank you so much for continuing to work on this truly amazing game, much much appreciated!

PS: I blame you for my sleepless nights and missed deadlines. :P MUST. OPTIMIZE!
Post Reply

Return to “Technical Help”