[0.16.21] Save and load times alot slower

This subforum contains all the issues which we already resolved.
Post Reply
Ringis96
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Jan 27, 2017 11:50 am
Contact:

[0.16.21] Save and load times alot slower

Post 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?
Attachments
2nd attemt 0.16.20.zip
A backup from three days ago, before a lot of exploring (13hours)
(24.39 MiB) Downloaded 93 times
Last edited by Ringis96 on Thu Feb 01, 2018 5:08 pm, edited 4 times in total.

User avatar
wheybags
Former Staff
Former Staff
Posts: 328
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: Save and load times alot slower

Post by wheybags »

Can you post a save that shows this? (preferably the 0.16.20 version of the save)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13235
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post by Rseding91 »

You can upload the other save with dropbox, google drive, one drive, or any other file-sharing service.
If you want to get ahold of me I'm almost always on Discord.

Bilka
Factorio Staff
Factorio Staff
Posts: 3159
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post by Bilka »

OP attached the save to the first post.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13235
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Ringis96
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Jan 27, 2017 11:50 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post by Ringis96 »

Hopefully you can get the save file with this link:
https://drive.google.com/file/d/1uxHV_q ... sp=sharing

Rseding91
Factorio Staff
Factorio Staff
Posts: 13235
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post 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.
If you want to get ahold of me I'm almost always on Discord.

Ringis96
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Jan 27, 2017 11:50 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post 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

quyxkh
Smart Inserter
Smart Inserter
Posts: 1029
Joined: Sun May 08, 2016 9:01 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post 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.

Ringis96
Burner Inserter
Burner Inserter
Posts: 8
Joined: Fri Jan 27, 2017 11:50 am
Contact:

Re: [0.16.21] Save and load times alot slower

Post 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.

Post Reply

Return to “Resolved Problems and Bugs”