Latest Posts

Topic: Game suddenly very slow

kaputtnik
Avatar
Joined: 2013-02-18, 20:48
Posts: 1857
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-04-25, 20:03

Your savegame works fine on my old 1core Intel Celeron 900 laptop, running shipping-tweaks-b21. However this was a release build.

Just try a release build. Debug builds tends to get slow, especially on big maps. Just my observation....

As long release builds don't get slow, this isn't a real problem i think.


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 829
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2020-04-25, 20:08

The first one is in AI code (Beifang), the others are all in routing code. So this is not a bug, just the usual issue that ware/worker pathfinding can take pretty long on big maps. As kaputtnik said the only remedy against this is to use release builds where this is not as much of a problem.


Top Quote
PkK
Joined: 2012-01-06, 12:19
Posts: 201
Ranking
Widelands-Forum-Junkie
Posted at: 2020-04-25, 20:34

kaputtnik wrote:

Your savegame works fine on my old 1core Intel Celeron 900 laptop, running shipping-tweaks-b21. However this was a release build.

Just try a release build. Debug builds tends to get slow, especially on big maps. Just my observation....

As long release builds don't get slow, this isn't a real problem i think.

It then still is a real problem for debugging other issues on large maps.

And it appeared surprisingly quickly (the game went from well-playable to unplayable-slow instantly) rather than gradually, so I suspected some real issue here.


Top Quote
niektory
Avatar
Joined: 2019-06-03, 20:06
Posts: 101
Ranking
Likes to be here
Location: Poland
Posted at: 2020-04-25, 20:38

The RelWithDebInfo (release with debug info) configuration is often a good compromise.


Top Quote
PkK
Joined: 2012-01-06, 12:19
Posts: 201
Ranking
Widelands-Forum-Junkie
Posted at: 2020-04-26, 20:58

kaputtnik wrote:

Your savegame works fine on my old 1core Intel Celeron 900 laptop, running shipping-tweaks-b21. However this was a release build.

Just try a release build. Debug builds tends to get slow, especially on big maps. Just my observation....

As long release builds don't get slow, this isn't a real problem i think.

Indeed, a build with ./compile -r runs at good speed for me (on the same system, where the debug build got 0.3 fps).


Top Quote