Krastorio 2


An overhaul mod focusing on end-game technologies and moderately increased complexity.

Overhaul
7 months ago
0.18 - 1.1
338K
Transportation Logistics Trains Combat Armor Mining Fluids Logistic network Manufacturing Power Storage

g Lags when robots deconstruct rails

4 years ago

a friend and me play on a private server and we're nearing the end of the (normal) research, so the base is pretty huge.

In the last hours we played we noticed some lags. As we continued to play the lags increased when i noticed they occur when bots deconstructed rails. After turning on show-time-usage, we both noticed the Entity update increased from 1.5ms to 30ms while the rails were deconstructed by robots. After they are done the lag is also gone and Entity update is back to ~1.5 ms

To figure out what mod causes the problem we removed all mods except Krastorio 2 and tried again. The lag still occurs when deconstruction rails with bots. When we also removed Krastorio 2 and were back to vanilla the Entity Updated stayed at 1.5ms while the bots deconstructed the rails.

We also updated to the latest version (1.0.7) of Krastorio 2 and it still causes lag spikes when deconstruction rails by robots.

factorio linux headless server 1.0
krastorio 2 1.0.4/1.0.7
auto deconstruct 0.1.20
FNEI 0.3.4
Inventory Sensor 1.8.3
LTN_Helper 0.1.0
LTN 1.14.5
MaxRateCalculator 3.4.46
ToDo-List 18.0.1
Warehousing 0.3.1
flib 0.4.0
sonaxaton-krastorio-spidertron-tweaks 0.1.0

4 years ago

It's not a bug, probably we have many callbacks on deconstructions, and mine entity events are well filtered and optimized, seems only that u deconstruct a lot of entities in the same moment with a lot of robots :)

4 years ago

The game runs on 60 ups/fps until i place down a blueprint with rails. I have 103 robots in my inventory and they have to build 168 rails, 24 chain signals, 4 big power poles and 4 normal signals. While constructing the blueprint the ups/fps go down to 50. When i deconstruct the whole thing it first lags for a second and then the ups/fps go down below 30. And when they are done the ups/fps go back to 60. This happens on every client and the server (when in multiplayer)

The following video shows the problem (recorded in singleplayer with savegame from the server)

https://youtu.be/1HnnouAGvq8