Page 1 of 1

[1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 12:40 pm
by Doenbo
Hey guys. I've been playing this game for a long time and have a save file at over 200 hours worth of active playtime. But since a week or so, my game keeps freezing. If i load my last save file, it always freezes after the exact same time. I guess, something is happening then, that the game can't handle. I deactivated all mods, but it is still happening. (I use Windows 10)
Is there a way to find out, what it is? I check the logging under "%appdata%\Factorio\factorio-current.log", but there is not much info. Any way to improve the log, so it gets more entries or is there another way to find out whats happening?

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 12:46 pm
by Loewchen
Post a link to the save and the log after a session with the issue, see 3638.

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 1:14 pm
by Doenbo

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 5:07 pm
by Rseding91
Thanks for the report. The issue is due to you having so many roboports that are losing power and deactivating and then re-activating once they have power again. That in combination with how many tile ghosts you have queued to build but not being built is causing it to take a *very* long time to complete.

I've improved the performance of this specific case for the next release but if you let it sit, it will eventually continue.

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 5:30 pm
by ickputzdirwech
May I asked how such wonders are achieved?

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Fri Sep 09, 2022 11:27 pm
by Rseding91
ickputzdirwech wrote:
Fri Sep 09, 2022 5:30 pm
May I asked how such wonders are achieved?
What part?

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Sat Sep 10, 2022 8:52 am
by ickputzdirwech
Rseding91 wrote:
Fri Sep 09, 2022 5:07 pm
I've improved the performance of this specific case for the next release

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Sun Sep 11, 2022 2:49 pm
by Rseding91
Previously when a roboport would activate it would go over each thing known to be out of the construction area(s) of roboports on that force and check if they were within range of that roboport.

I change it to store the area(s) of each roboport activated this tick and at the start of the next tick go over those areas all at once and do the same check. The main difference being the new approach has much better memory locality due to the areas to check being in one block of memory and only touching each thing out-of-network once for all the roboports enabled this tick rather than N times.

Re: [1.1.68] Factorio freezes always at the exact same moment

Posted: Thu Sep 15, 2022 5:56 am
by Doenbo
Thanks you so much for your very quick and hard work. I have waited for the freeze to be over and can now continue playing again! :D