Frozen every 2 minutes

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Doskan
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Apr 16, 2014 3:52 pm
Contact:

Frozen every 2 minutes

Post by Doskan »

As title says, i get a screen freeze for about 1-2 seconds every 2:04 exactly, is there something that triggers every that lapse of time?
Got many mods btw... heres a list of them:

- Advanced equipment
- Dytech, core, inserters, storage and tools
- F-mod
- mopower
- motrans
- Pocketbots
- Powerlimiter
- Quick-start
- Resource monitor
- Telelogistics
- TimeButtons
- Yuoki
- Treefarm
FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: Frozen every 2 minutes

Post by FishSandwich »

Yeah. That's quite a few mods you have there. ;)

Is it the auto save? Try increasing it to a higher number, or just turn it off.
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: Frozen every 2 minutes

Post by Rahjital »

Check your autosave interval at options. I believe it is set to 2 minutes by default, so there's high chance the game is taking a while to save the game. You can raise the interval if it bothers you, but I would recommend not to set it any higher than 10 minutes. Remember that 0.10.1 is still a somewhat unstable version, so the autosaves make sure you don't lose all your progress in case anything happens.

The mods can make your saving time longer, especially large ones like DyTech or F-mod. It's your choice whether you want to sacrifice the mods in favour of saving speed or if you live with the occassional freeze.
Doskan
Burner Inserter
Burner Inserter
Posts: 16
Joined: Wed Apr 16, 2014 3:52 pm
Contact:

Re: Frozen every 2 minutes

Post by Doskan »

Oh its definetely that autosave thing, thank you guys :)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Frozen every 2 minutes

Post by ssilk »

Moved to technical help, but left a link in Game-help.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Frozen every 2 minutes

Post by slpwnd »

We really should make some "saving animation" to make it clear that autosave is running.
Shaymes
Fast Inserter
Fast Inserter
Posts: 215
Joined: Thu May 22, 2014 8:06 am
Contact:

Re: Frozen every 2 minutes

Post by Shaymes »

maybe like this?

Image
Mining Drill Operator
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Frozen every 2 minutes

Post by slpwnd »

Haha, yes something like that :)
Shaymes
Fast Inserter
Fast Inserter
Posts: 215
Joined: Thu May 22, 2014 8:06 am
Contact:

Re: Frozen every 2 minutes

Post by Shaymes »

:lol:
Mining Drill Operator
bulldog98
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Tue Apr 08, 2014 6:40 am
Contact:

Re: Frozen every 2 minutes

Post by bulldog98 »

slpwnd wrote:We really should make some "saving animation" to make it clear that autosave is running.
You could also fork a process for saving the files.
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Frozen every 2 minutes

Post by slpwnd »

bulldog98 wrote:
slpwnd wrote:We really should make some "saving animation" to make it clear that autosave is running.
You could also fork a process for saving the files.
Not so easy. The game must be stopped to capture the game state. We were playing with a mechanism that would save the game to memory buffer and then in another thread write it to file. That would be quite faster but can cause errors when requiring a lot of continous RAM (we had issues like that recently).
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Frozen every 2 minutes

Post by ssilk »

Hm. What if you use a resynchrinisation?

First (very naive iteration):

- You begin the save and save chunk by chunk and the tick, when a chunk is saved. At the end you saved all chunks with the time.
- So when you now load the chunks in this exact order at exact the same tick you have the same game.

Well, of course this works only, if there is no interaction between the chunks.

Next iteration is to define a maximum speed; like the lightspeed there is nothing in factorio, which can move faster than this speed.

With this definition you need to save overlapping parts only.

- Save a chunk plus all tiles around this chunk, where anything can move in the time it takes to save this chunk.
- So when you load now you overlap add the saved chunk plus the saves tiles around this chunk.

And now you can make that faster, by using your method: Copy as many chunks as possible into the memory plus a border around them, which brings you on the sure side, that you have enough time to not come over the "light-speed".

More ideas: First store the non-moving stuff, landscape etc. Then the slow moving parts, like belts, then the fast moving part like locomotives. Also exactly the same idea, but for the non-moving parts it is only needed to update after the save, if something has changed meanwhile. And so with all the other things.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Technical Help”