[1.1.91][Linux] Factorio uses a wrong GPU
Posted: Mon Oct 16, 2023 8:40 am
So, the problem is quite simple. I have a dual GPU setup (an integrated GPU & a discrete GPU) and, by default, Factorio selects the iGPU regardless of the current graphic settings. It's not noticeable on the vanilla game but, with mods, the game squeezes everything out of the iGPU and runs at 1 FPS both in the main menu & the game.
I found a temporary solution to this issue by setting the DRI_PRIME=1 env var, which forces the use of a discrete GPU, before starting the game but actually it should select the most powerful GPU automatically, like other games do.
In attached logs, you can see the only difference is in a selected GPU & VRAM size.
I found a temporary solution to this issue by setting the DRI_PRIME=1 env var, which forces the use of a discrete GPU, before starting the game but actually it should select the most powerful GPU automatically, like other games do.
In attached logs, you can see the only difference is in a selected GPU & VRAM size.
- factorio-previous.log was started without the DRI_PRIME=1 env var.
- factorio-current.log was started with it.