Latest Posts

Topic: Really really bad performance of savegame

MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 137
Ranking
At home in WL-forums
Posted at: 2020-09-08, 17:12

I once created a savegame with my Europeans tribe on the map Europe 1.1 and played it for about 160 hours against normal tribes. The game is now unplayable. You can no longer navigate on the map.

Where does this extreme loss of performance come from? Can a developer please check that with a debug version?

I play with the normal build 21 from Flatpak on Solus Linux. I installed my own tribe under ~ / .widelands.

I attached the link to my saved game (on Google Drive) below. This also includes the tribe folder.

-> https://drive.google.com/file/d/1Lsa5iMMR92O7mxHNlOmJpt6qFXFixQzP/view?usp=sharing


Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 170
Ranking
At home in WL-forums
Location: Poland
Posted at: 2020-09-08, 18:23

I don't think you shared the files correctly. Can you attach them here or in a GitHub issue?


Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 137
Ranking
At home in WL-forums
Posted at: 2020-09-08, 19:09

What files are missing?

Edited: 2020-09-08, 19:09

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1004
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-09-08, 19:52

Without having looked at the savegame, when games run slowly on big maps it is often – not always though, sometimes there's a real bug – just the long distances that affect especially pathfinding a lot. I'm currently working on a multithreading feature to keep at least the user interface responsive then, and eventually also boost the performance of critical code such as pathfinding.


Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 170
Ranking
At home in WL-forums
Location: Poland
Posted at: 2020-09-08, 19:55

I can't access any files at all. It doesn't seem like you enabled public access.


Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 137
Ranking
At home in WL-forums
Posted at: 2020-09-08, 20:26

niektory wrote:

I can't access any files at all. It doesn't seem like you enabled public access.

I changed the access option.


Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 170
Ranking
At home in WL-forums
Location: Poland
Posted at: 2020-09-09, 03:02

Thanks for the save. I was able to find one badly performing function by profiling it: #4242

Here's Build 21 with the fix if you don't mind compiling it yourself: build-21_optimize_object_checking


Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 137
Ranking
At home in WL-forums
Posted at: 2020-09-09, 06:06

Thx, I will try it.


Top Quote
MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 137
Ranking
At home in WL-forums
Posted at: 2020-09-09, 08:02

deleted message

Edited: 2020-09-09, 09:28

Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1915
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-09-09, 09:06

I guess you need to install some build tools to be able to build widelands. Depending on your operating system the build tools are different


Top Quote