Page 2 of 2

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Wed Jul 15, 2026 2:50 pm
by Rseding91
Gleba is problematic because several decoratives are configured to render in the same layer as trees, and trees are in their own atlases for the shader effects. The design of Gleba goes against batching in general - it wants several layers never meant to interact to interact.

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Wed Jul 15, 2026 4:18 pm
by Harkonnen
making those decos "trees" with wind effect of zero might work (via 'if' or 0. multiplier) to unify organic shader. you can also animate them this way :)

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Wed Jul 15, 2026 4:33 pm
by SteveofDoom
Harkonnen wrote: Wed Jul 15, 2026 1:56 pm
SteveofDoom wrote: Wed Jul 15, 2026 1:29 pm The most bizarre thing to me is that it's a 2.1-specific issue. I've never had framerate issues prior to 2.1. I would think texture arrays are a given with the amount of sprites this game has.
according to FFF worms got revamp on 2.1, could be an issue. on texture arrays - back in those days they were abandoned for hw limitations, probably still is
Everything you are saying makes sense, but over 40x increase in draw calls (Vulcanus case) seems a bit excessive from such a change even though I know nothing about Factorio's codebase.
Rseding91 wrote: Wed Jul 15, 2026 2:50 pm Gleba is problematic because several decoratives are configured to render in the same layer as trees, and trees are in their own atlases for the shader effects. The design of Gleba goes against batching in general - it wants several layers never meant to interact to interact.
Is there something about rendering Gleba that changed compared to 2.0.x? I haven't really noticed any difference visually (except stromatolites ofc), but definitely noticed the performance gap and it's all about decoratives.

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Fri Jul 17, 2026 7:53 pm
by rayhem
I'm still seeing tremendous performance regressions when I jump from stable (v2.0.77) to experimental (v2.1.11), getting about 5.3fps. Even the title screen lags, though this appears to be dependent on the window size (performance improves if I shrink it down). I've attached

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Fri Jul 17, 2026 7:55 pm
by Bilka
rayhem wrote: Fri Jul 17, 2026 7:53 pm I'm still seeing tremendous performance regressions when I jump from stable (v2.0.77) to experimental (v2.1.11), getting about 5.3fps. Even the title screen lags, though this appears to be dependent on the window size (performance improves if I shrink it down). I've attached
According to the name of the file, Factorio is using the software renderer. Make sure to install a graphics driver for your GPU/make sure that it works.

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Fri Jul 17, 2026 10:10 pm
by rayhem
Bilka wrote: Fri Jul 17, 2026 7:55 pm According to the name of the file, Factorio is using the software renderer. Make sure to install a graphics driver for your GPU/make sure that it works.
I don't know why v2.1.11 isn't picking up the graphics driver, but I definitely have one set up. I'm running NixOS with

Code: Select all

boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ];

# Configure NVIDIA Graphics
hardware.graphics.enable = true;

hardware.nvidia = {
  modesetting.enable = true;
  powerManagement.enable = false;
  open = true;
  nvidiaSettings = true;
  package = config.boot.kernelPackages.nvidiaPackages.beta;
};

services.xserver.videoDrivers = [ "nvidia" ];
which for sure enables the driver, and nvidia-smi returns

Code: Select all

Fri Jul 17 18:06:09 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 595.45.04              Driver Version: 595.45.04      CUDA Version: 13.2     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 2070 ...    Off |   00000000:01:00.0  On |                  N/A |
|  0%   54C    P0             43W /  215W |     859MiB /   8192MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            2154      G   ...me-shell-50.1/bin/gnome-shell        338MiB |
|    0   N/A  N/A            2583      G   ...xwayland-24.1.12/bin/Xwayland          4MiB |
|    0   N/A  N/A            2865      G   .../opt/Discord/.Discord-wrapped         84MiB |
|    0   N/A  N/A           50964      G   ...share/Steam/ubuntu12_32/steam          4MiB |
|    0   N/A  N/A           51218      G   ./steamwebhelper                         46MiB |
|    0   N/A  N/A           51257    C+G   ...am/ubuntu12_64/steamwebhelper          7MiB |
|    0   N/A  N/A          565539      G   ...current-system/sw/bin/firefox        198MiB |
|    0   N/A  N/A         1089628    C+G   ...hc-gnome-console-50.0/bin/kgx         61MiB |
+-----------------------------------------------------------------------------------------+
which tells me the 2070 SUPER card is found and enabled. Is there a setting within Factorio (or something like a stale config file) I should try out?

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Sat Jul 18, 2026 3:03 am
by Jap2.0
rayhem wrote: Fri Jul 17, 2026 10:10 pm
Bilka wrote: Fri Jul 17, 2026 7:55 pm According to the name of the file, Factorio is using the software renderer. Make sure to install a graphics driver for your GPU/make sure that it works.
Have you done any distro updates recently? This sounds vaguely reminiscent of 129517.

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Mon Jul 20, 2026 4:58 pm
by rayhem
Jap2.0 wrote: Sat Jul 18, 2026 3:03 am Have you done any distro updates recently? This sounds vaguely reminiscent of 129517.
Nope. 2.0.77 works just fine; I only see issues if I when I swap to 2.1.11 in Steam.

Re: [2.1.7] Large rendering performance regression on Linux

Posted: Mon Jul 20, 2026 10:08 pm
by Jap2.0
rayhem wrote: Mon Jul 20, 2026 4:58 pm
Jap2.0 wrote: Sat Jul 18, 2026 3:03 am Have you done any distro updates recently? This sounds vaguely reminiscent of 129517.
Nope. 2.0.77 works just fine; I only see issues if I when I swap to 2.1.11 in Steam.
Does it happen with the non-Steam version?