#Game lags on save, is this a known thing?

10 messages · Page 1 of 1 (latest)

dawn swan
#

I noticed that every time the game is saving/auto-saving, it always lag for a bit until the save finishes. It's only for like less than a second, but it is definitely noticeable. Just asking whether it's known or not

rain zinc
#

iirc yes

dawn swan
#

I'm guessing it's not intended? Or is it? Since in factorio whenever a save occurs the game "pauses" but it gives out a window telling you that it's currently saving

sage stirrup
#

Currently unavoidable đŸ˜…

#

Should be improved in the future

dawn swan
#

Alright understandable đŸ˜„, I was just curious about it

sage stirrup
primal dust
#

Save lag depends on the size of the save file (of course). My lag is ~10 seconds.

spring sluice
#

I guess even with multithreading, you still need 1 tick where you serialize all values.
And taking that snapshot takes time while the simulation cannot continue.
You can at max buffer the snapshot in RAM synchronously (which will inevitable take some time)
and then you can use another thread to write that snapshot to disk and take your sweet time for that.
That second stage can be improved with multithreading.
So yes, it should get better, but it might still be noticeable.

wraith sandal