games with big amount Fields in scripting data (Territorial, Woodgnome) take very long to be saved

Bug #1817414 reported by hessenfarmer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Medium
Unassigned

Bug Description

On Big maps there are a lot of fields identified to be conquered in the territorial win conditions or woodgnome.
When trying to save such a game it takes very long, where saving time isn't linear to the amount of fields but exponential.
I have attached a stdout.txt with saving values.
Relevant lines are "Writing Scripting Data ... took 102431ms"

Tags: savegame
Revision history for this message
hessenfarmer (stephan-lutz) wrote :
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

It just takes very long but works

Changed in widelands:
status: New → Invalid
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

here is the log for loading magicmountain in territorial time

Revision history for this message
Toni Förster (stonerl) wrote :

These lines here:

Writing Scripting Data ... took 102431ms

Writing Scripting Data ... took 88488ms

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

and another one
as we have 3 saves at the start

Revision history for this message
Toni Förster (stonerl) wrote :

 Writing Scripting Data ... took 89594ms

We basically spend almost 5 minutes with saving the game.

Revision history for this message
Toni Förster (stonerl) wrote :

BTW. That doesn't only affect territorial, but also woodgnome and artifacts.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

not sure if woodgnome and artifacts are affected in the same manner did you test it?

Revision history for this message
Toni Förster (stonerl) wrote :

Yes I tested it. Just load Magic Mountain with r8999 and Wood Gnome. It also takes ages writing the data. Since GunChleoc removed the postload in that revision, it writes only 2 saves.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

tested it as well.
woodgnome is affected in the same way.
Artifacts is not affected as it contains far less fields to save.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Changed the description and the report. Set it to new again to be not forgotten for b21 or later

summary: - games with a big amount of territory fields to conquer can't be saved
+ games with a big amount Fields in scripting data (Territorial,
+ Woodgnome) tkae very long to be savedbe saved
summary: - games with a big amount Fields in scripting data (Territorial,
- Woodgnome) tkae very long to be savedbe saved
+ games with big amount Fields in scripting data (Territorial, Woodgnome)
+ take very long to be saved
description: updated
Changed in widelands:
status: Invalid → New
GunChleoc (gunchleoc)
tags: added: savegame
Changed in widelands:
milestone: none → build21-rc1
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.