Page 2 of 2

Re: Autosaving while in combat is DUMB

Posted: Thu Jun 02, 2016 9:17 pm
by ssilk
Idea: If the autosave-configuration would be configurable via LUA, it would be really not so difficult to write a mod, that turns autosave off, while you are in the middle of a combat. (and vice versa)
Muchaszewski wrote:Operation that save stuff to disk is locking ALL threads. So for every chunk of bytes you write you have to wait unlill that finishes. So using multiple thread is no go.
Sorry, but wIth the post I linked above it is. :)

Here again:
ssilk wrote:I think the only way to improve save speed is implementing this: viewtopic.php?f=6&t=25640#p161886

Re: Autosaving while in combat is DUMB

Posted: Sat Jun 04, 2016 1:14 am
by ratchetfreak
Rseding91 wrote:And then your memory use is 50 GB instead of 6GB. That doesn't work due to the dynamic nature of Factorio. The only place we have a custom allocator is sprite drawing.
seriously?

With proper implementation of chunked object pools you would have only a constant extra memory allocated per pool of entities (the last not full chunk plus however many empty chunks you keep to avoid constant frees and allocs). The tricky part is defragmenting the pools but some kind of relocation protocol will help with that.

Even with that overhead you would at most double your memory during save plus the pointer maps.

Re: Autosaving while in combat is DUMB

Posted: Sat Jun 04, 2016 11:59 am
by thereaverofdarkness
The game does autosave too often. If I really wanted to save that much, I'd use a quicksave feature. I think autosaves should happen once every 5-10 minutes.

Re: Autosaving while in combat is DUMB

Posted: Sat Jun 04, 2016 12:05 pm
by daniel34
thereaverofdarkness wrote:The game does autosave too often. If I really wanted to save that much, I'd use a quicksave feature. I think autosaves should happen once every 5-10 minutes.
You can already set the autosave interval in Options --> Other (between 1 and 100 minutes or never).

Re: Autosaving while in combat is DUMB

Posted: Sun Jun 05, 2016 2:35 am
by thereaverofdarkness
daniel34 wrote:You can already set the autosave interval in Options --> Other (between 1 and 100 minutes or never).
Oh, thanks! I didn't know that!

Re: Autosaving while in combat is DUMB

Posted: Tue Aug 23, 2016 7:45 pm
by Hannu
Is it possible to change autosaving such that when autosaving time limit is exceeded game waits until player have not moved or pressed buttons for example in 3 seconds? It would prevent most annoying situation in which autosave happens at worst possible moment.