Async auto save in multiplayer but not in singleplayer?? Why??

Post all other topics which do not belong to any other category.
Marconos
Filter Inserter
Filter Inserter
Posts: 301
Joined: Mon Jun 02, 2014 10:46 pm
Contact:

Async auto save in multiplayer but not in singleplayer?? Why??

Post by Marconos »

I'm really trying to understand here why the more complicated multiplayer system has asynchronous saving of the game state but in single player we have to wait for the auto save.

Can a dev explain why we can't turn on async autosave in single player?

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1247
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by valneq »

Non-blocking save only works on Linux and OSX, as posila wrote here:
viewtopic.php?p=375113#p375113
Does the server run Linux, do you run Windows on your machine?

Marconos
Filter Inserter
Filter Inserter
Posts: 301
Joined: Mon Jun 02, 2014 10:46 pm
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by Marconos »

Not running a server. Single player I don't want to have to wait for saving. Reading through some of the questions / answers in that thread is appears for some reason they can't do non blocking saves in windows but they can on Mac / Linux. No real reason given, just that it can't be done.

Really curious what OS feature is lacking that keeps this from working?

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by Oxyd »

Marconos wrote:
Thu Jun 04, 2020 10:45 pm
Not running a server. Single player I don't want to have to wait for saving. Reading through some of the questions / answers in that thread is appears for some reason they can't do non blocking saves in windows but they can on Mac / Linux. No real reason given, just that it can't be done.

Really curious what OS feature is lacking that keeps this from working?
Windows doesn't have the fork system call, which async saving is based on.

User avatar
valneq
Smart Inserter
Smart Inserter
Posts: 1247
Joined: Fri Jul 12, 2019 7:43 am
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by valneq »

Oxyd wrote:
Thu Jun 04, 2020 11:08 pm
Windows doesn't have the fork system call, which async saving is based on.
That does not explain why the OP claims to have non-blocking save in multiplayer without any Linux/MacOS system involved. How does that work?

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by Oxyd »

valneq wrote:
Thu Jun 04, 2020 11:27 pm
Oxyd wrote:
Thu Jun 04, 2020 11:08 pm
Windows doesn't have the fork system call, which async saving is based on.
That does not explain why the OP claims to have non-blocking save in multiplayer without any Linux/MacOS system involved. How does that work?
I don't see them claiming that. I think you misread.

bobucles
Smart Inserter
Smart Inserter
Posts: 1708
Joined: Wed Jun 10, 2015 10:37 pm
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by bobucles »

Ah, but if you VM a linux machine to host a server, then you can get the fork command in windows for the async save. :roll: #bigthink

Marconos
Filter Inserter
Filter Inserter
Posts: 301
Joined: Mon Jun 02, 2014 10:46 pm
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by Marconos »

Oxyd wrote:
Thu Jun 04, 2020 11:08 pm
Windows doesn't have the fork system call, which async saving is based on.
Thanks for the info, appreciated.

User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: Async auto save in multiplayer but not in singleplayer?? Why??

Post by moon69 »

A workaround is turning off compression in config.ini - this speeded my autosaves up noticeably...

Code: Select all

; Options: none, fast, maximum
; autosave-compression-level=none

Post Reply

Return to “General discussion”