Page 1 of 1

Lag in a custom large map - Am I doing too much?

Posted: Mon Apr 17, 2017 2:54 am
by Mezion
Hi everyone,
First off, to any and all the developers that see this, awesome work on this game! It truely is quite impressive what you have achieved.

I have been trying to create a custom map, and have been encountering some lag, and I was hoping someone could clarify the source of it.
Do I simply have too many entities doing things at the same time, or could there something wrong with my saved game? Could there there something about the designs that could be changed that will improve performance?
I realise asking "how many entities is too many" is about as useful as "how long a is a piece of string", but trying to search high entity counts yielded few comparable results - usually people having problems with mods, which when fixed put them back to about 5. I hope there are others with more experience with large bases that could advise me as to whether the lag is normal for a base this size?
I read in the faqs to try using underground belts, and so I am in the process of converting whatever belts I can find. I am unsure if recent updates has made this advice redundent. Is there any other base-building tips I can try to improve performance?

Watching F5, Game Update with power turned off is at 13-17, and 25-30 with power turned on. When it goes up, my UPS/framerate drops to 30-40. I laso noticed occasional spikes of ~60 - I think when power switches over to accumulator supply? The Game update lag appears to be caused by an Entity update, which is 15/24 for power off/power on.
I am not sure if Entity Update should be around the 13-16 mark when no power is supplied to anything, as nothing should be moving?

I have foreman mod and gravestone mod, and have previously had a problem when I saved the game with the foreman menu open and used map2scenario. This broke the mod for this save until I disabled the mod, loaded the scenario, saved the game, enabled the mod, and loaded the game again. The map has been through map2scenario many times. I haven't considered the mods as causing a problem, unless foreman caused a more sutle problem when it broke?

My CPU is an i7 920. I understand I may be trying to do to much, but it is hard to tell without experience in large builds.
The map shows many enemies on the edges. I have removed many in the map editor, however the map does not update this until you view the area again as a player. I have tried using the command to kill enemies. This is not made a notible difference on the number of entities or entity update.


Power Off
Power Off
Factorio-Power_off.jpg (1.22 MiB) Viewed 735 times
Powered On
Powered On
Factorio-power_on.jpg (1.19 MiB) Viewed 735 times
Lag spike
Lag spike
Factorio-Random_Lag_Spike.jpg (1.16 MiB) Viewed 735 times
Map
Map
Factorio-Map.jpg (498.8 KiB) Viewed 735 times