Page 1 of 1
[0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 4:47 pm
by Ringis96
After upgrading to 0.16.21 the save the game and loading a save takes roughly 2 or 3 times longer than it did in 0.16.20
Edit: Tried to upload both a save from .21 and a backup from a few days ago from version .20, but the .21 save file got a file to big error. Compared the two filesizes and the file size from .20 is 24 MB and the filesize from .21 is 148 MB. I have done explored a lot between the two saves, but it was first after upgrading to .21 it slowed down.
I tried to load and save a copy from my old save to check if it would increase in size, but only with 100 KB.
Is there another way to upload?
What else can i do?
Re: Save and load times alot slower
Posted: Thu Feb 01, 2018 4:50 pm
by wheybags
Can you post a save that shows this? (preferably the 0.16.20 version of the save)
Re: [0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 5:56 pm
by Rseding91
You can upload the other save with dropbox, google drive, one drive, or any other file-sharing service.
Re: [0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 6:57 pm
by Bilka
OP attached the save to the first post.
Re: [0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 7:02 pm
by Rseding91
The save on the first post loads in the expected 1-2 second time frame.
Without a save file showing the slow loading there's nothing I can do.
Re: [0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 7:14 pm
by Ringis96
Re: [0.16.21] Save and load times alot slower
Posted: Thu Feb 01, 2018 8:00 pm
by Rseding91
I looked at your save and it's a multi-part problem.
- [1] You explored a ton of map - which now has to be included in the save file
[2] You aggroed a ton of biters which are now trying to path back to your base to attack you
I found 1 area in loading path finder data that changed the map load time from 8.5 seconds to 6.5 seconds after I improved it. Other than that you simply have a huge map now.
If you don't want to deal with the save/load times on the huge map don't explore that much.
Re: [0.16.21] Save and load times alot slower
Posted: Fri Feb 02, 2018 4:52 pm
by Ringis96
I really appreciate you taking a look.
I did really think that I had come across a bug, and since everything was my own fault and ignorence, I am very sorry for wasting your time.
Sincerely
Ringis
Re: [0.16.21] Save and load times alot slower
Posted: Fri Feb 02, 2018 6:30 pm
by quyxkh
Here's a way to shrink a map to just the rectangle your force has built in, plus chunks pollution has already reached:
Code: Select all
/c _G.tl={} _G.br={} _G.min=math.min _G.max=math.max _G.s1=game.surfaces[1]
for _,e in next,game.surfaces[1].find_entities_filtered{force=game.forces.player} do
p=e.position
tl={x=min(p.x-64,tl.x or p.x),y=min(p.y-64,tl.y or p.y)}
br={x=max(p.x+64,br.x or p.x),y=max(p.y+64,br.y or p.y)}
end
for c in s1.get_chunks() do
if s1.get_pollution{c.x*32,c.y*32} == 0
and ( c.x<tl.x/32 or c.y<tl.y/32 or c.x>br.x/32 or c.y>br.y/32)
then
s1.delete_chunk(c)
end
end
s1.force_generate_chunk_requests()
if you're feeling particularly trusting you can just copy all of that and paste it directly into your game console.
Re: [0.16.21] Save and load times alot slower
Posted: Sat Feb 03, 2018 7:50 am
by Ringis96
quyxkh wrote:Here's a way to shrink a map.....
I appreciate that, but I had already used a deleting chunks command. Thanks anyway tough.
I had no idea exploring terrain had such a big impact on the game, never would have done if i knew.