[2.0.13] 100% CPU utilisation, forever

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.
akay
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Oct 31, 2024 1:56 pm
Contact:

[2.0.13] 100% CPU utilisation, forever

Post by akay »

On Linux, as soon as the loading screen with "Loading sprites" finishes and I get the Main menu, factorio exhausts all cores on the CPU as long as the game is running. FPS seems to oscillate around 2-5, both on Main menu & in game, depending on what's displayed in the background (in Main menu).
Tried restarting a few times, but didn't help.
Problem didn't exist on 2.0.12.

sway 1:1.10-1
nvidia-dkms 560.35.03-19
10-31-2024, 17-28-56.png
10-31-2024, 17-28-56.png (31.49 KiB) Viewed 443 times
10-31-2024, 17-29-31.png
10-31-2024, 17-29-31.png (11 KiB) Viewed 443 times
Attachments
2024-10-31_17h-03m-27s.png
2024-10-31_17h-03m-27s.png (5.45 MiB) Viewed 443 times
eepy.zip
(4.23 MiB) Downloaded 9 times
factorio-current.log
(7.09 KiB) Downloaded 15 times
Last edited by akay on Thu Oct 31, 2024 2:58 pm, edited 2 times in total.
posila
Factorio Staff
Factorio Staff
Posts: 5409
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [2.0.13] 100% CPU utilisation, forever

Post by posila »

Code: Select all

   0.050 Initialised OpenGL:[1] llvmpipe (LLVM 18.1.8, 256 bits); driver: 4.5 (Core Profile) Mesa 24.2.5-arch1.1
Hello, I can see OpenGL initialized using llvmpipe driver (https://docs.mesa3d.org/drivers/llvmpipe.html) which is software rasterizer - meaning, OpenGL does not use your GPU, it does the rendering on CPU, resulting in low FPS and 100% CPU utilisation. There was no change in flags we use to create OpenGL context, so I don't think this is due to any change we did on our side.
akay
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Oct 31, 2024 1:56 pm
Contact:

Re: [2.0.13] 100% CPU utilisation, forever

Post by akay »

posila wrote: Thu Oct 31, 2024 2:56 pm

Code: Select all

   0.050 Initialised OpenGL:[1] llvmpipe (LLVM 18.1.8, 256 bits); driver: 4.5 (Core Profile) Mesa 24.2.5-arch1.1
Hello, I can see OpenGL initialized using llvmpipe driver (https://docs.mesa3d.org/drivers/llvmpipe.html) which is software rasterizer - meaning, OpenGL does not use your GPU, it does the rendering on CPU, resulting in low FPS and 100% CPU utilisation. There was no change in flags we use to create OpenGL context, so I don't think this is due to any change we did on our side.
The problem stops when I select X11 as the preferred video driver.
Before I ran factorio, I updated both the nvidia drivers and sway when I turned on the computer and restarted, but that's the only change between running the game perfectly fine on 2.0.12 last night with preferred video driver set to Wayland, and today. Maybe something changed on their side.

Thank you. I'll just use the X11 option for now.
Attachments
factorio-current.log
(6.98 KiB) Downloaded 10 times
tlauli
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Nov 01, 2024 10:58 pm
Contact:

Re: [2.0.13] 100% CPU utilisation, forever

Post by tlauli »

I have the same problem on arch linux.

Code: Select all

sway-git 1.10.r7457.d417a8f-1
wlroots-git 0.19.0.r7285.d835fa81-1
nvidia-open 565.57.01-1
What I noticed is that in the steam logs there is this line:

Code: Select all

libEGL warning: egl: failed to create dri2 screen
Factorio tries to use the gpu, but fails for some reason. I tried to force the usage of gpu acceleration with

Code: Select all

__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/10_nvidia.json steam
but then Factorio unsurprisingly did not even start.

I am not sure where the problem is, whether it is sdl, my system being misconfigured in some way, or just nvidia being crappy, but I will be happy to test things or provide more info.

EDIT: Same situation with sway 1.10 and wlroots 0.18.1 from the official repos.
Attachments
factorio-current.log
(7.46 KiB) Downloaded 8 times
crimsonknave
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Dec 19, 2024 9:33 pm
Contact:

Re: [2.0.13] 100% CPU utilisation, forever

Post by crimsonknave »

I had the same problem after a Nvidia driver update. Factorio launched from steam would not use my GPU if it was using wayland, but I had the flickering issue if I used X11. Oddly, launching the non steam version of the game worked great in wayland with no issues.

I was able to get the steam version working by setting the following as my launch options. Taken from https://wiki.archlinux.org/title/OpenGL ... kan_(Zink), this set opengl to use vulkan.

Code: Select all

env __GLX_VENDOR_LIBRARY_NAME=mesa __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink %command%
Post Reply

Return to “Technical Help”