Page 1 of 1

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

Posted: Thu Jun 04, 2020 4:38 pm
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?

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

Posted: Thu Jun 04, 2020 4:53 pm
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?

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

Posted: Thu Jun 04, 2020 10:45 pm
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?

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

Posted: Thu Jun 04, 2020 11:08 pm
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.

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

Posted: Thu Jun 04, 2020 11:27 pm
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?

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

Posted: Thu Jun 04, 2020 11:51 pm
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.

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

Posted: Fri Jun 05, 2020 1:38 am
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

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

Posted: Fri Jun 05, 2020 3:33 am
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.

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

Posted: Sun Jun 07, 2020 9:04 pm
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