Non-blocking saving on player connection

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Non-blocking saving on player connection

Post by Atraps003 »

Non-blocking saving currently applies to manual saves and auto-saves. I speculate that it would be reasonably easy to implement for player connections as well?

Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Re: Non-blocking saving on player connection

Post by Atraps003 »

A picture to help explain.

https://imgur.com/a/YjHVomD

Koub
Global Moderator
Global Moderator
Posts: 7199
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Non-blocking saving on player connection

Post by Koub »

Either I don't understand, or you're wrong : I am blocked upon save when I play solo (both for manual and auto-saves)
Koub - Please consider English is not my native language.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Non-blocking saving on player connection

Post by posila »

Koub wrote:Either I don't understand, or you're wrong : I am blocked upon save when I play solo (both for manual and auto-saves)
Non-blocking saving is an option on Linux and macOS.

It has not been implemented for saving on player connection, because then connecting players would have to start receiving input actions before they start downloading the map, which adds big complexity to player connection, and mostly because it seems to us people would rather have auto-pause when player is connecting, so the connecting players don't have to catch up the server after downloading the map.

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Non-blocking saving on player connection

Post by Zavian »

@Koub there is an option for non blocking saves. (I forget whether it is linux only on also available on OSX, it's not available on windows).

Having said that, personally I don't think non-blocking autosaves for players joining will be that useful. Whilst it would prevent a pause when someone joins, it will mean they will end up taking longer to catch up. For large maps (ie where the pause to save for joining is most significant), the groups I've played with often end up pausing the game to help players catch up anyway.

Zavian
Smart Inserter
Smart Inserter
Posts: 1641
Joined: Thu Mar 02, 2017 2:57 am
Contact:

Re: Non-blocking saving on player connection

Post by Zavian »

@posila. Then please implement (either as an option, or just as always on behaviour) that a server that is paused because no-one is connected, does not unpause until someone finishes downloading the map. For me, that map download is often 5-10 minutes followed by 30 mins of catching up, if I'm the first player to join.

Koub
Global Moderator
Global Moderator
Posts: 7199
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Non-blocking saving on player connection

Post by Koub »

Zavian wrote:@Koub there is an option for non blocking saves. (I forget whether it is linux only on also available on OSX, it's not available on windows).
Linux only, because of OS constraints.
Koub - Please consider English is not my native language.

Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 64
Joined: Thu Jan 04, 2018 6:34 am
Contact:

Re: Non-blocking saving on player connection

Post by Atraps003 »

@posila. Then please implement (either as an option, or just as always on behaviour) that a server that is paused because no-one is connected, does not unpause until someone finishes downloading the map. For me, that map download is often 5-10 minutes followed by 30 mins of catching up, if I'm the first player to join.
We already have that feature? Or does the server unpause before the first and only player is finished downloading the map even if this is set to true? If that's the case I would consider it a bug. A player can't be present if they don't have the map.

Code: Select all

  "_comment_auto_pause": "Whether should the server be paused when no players are present.",
  "auto_pause": true,
Having said that, personally I don't think non-blocking autosaves for players joining will be that useful. Whilst it would prevent a pause when someone joins, it will mean they will end up taking longer to catch up. For large maps (ie where the pause to save for joining is most significant), the groups I've played with often end up pausing the game to help players catch up anyway.
I disagree. A group of people waiting for one person is not an efficient use of time on public servers. It also introduces a dos attack vector.

User avatar
Ghoulish
Filter Inserter
Filter Inserter
Posts: 461
Joined: Fri Oct 16, 2015 8:40 am

Non Blocking Saving

Post by Ghoulish »

Might it be possible to expand the non blocking feature so that it is also used when players join a server?

Using this feature (which I have not had an issue with to date) Really highlights the pauses that happen when players join the server. Be a nice additional step to give a little more uninterrupted gameplay.

For those curious, non blocking saving forks the save process and allows it to happen in the background - game play is uninterrupted. Only works for UNIX systems.
See the daily™ struggles with my Factory! :D https://www.twitch.tv/repetitivebeats

Jap2.0
Smart Inserter
Smart Inserter
Posts: 2339
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: Non Blocking Saving

Post by Jap2.0 »

I believe it can be used on Unix servers; beyond that I'm not entirely clear, I think it's largely OS limitations? It would be a nice thing to have.
There are 10 types of people: those who get this joke and those who don't.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Non-blocking saving on player connection

Post by ssilk »

Ten seconds more investment into search would save me to move this into the already existing thread. :)

And BTW: This option works on Linux und MacOS and AFAIK is not so easy to implement under Windows.
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 “Ideas and Suggestions”