After a while, increasing game speed makes the game lag even at lower speeds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
Recently I have noticed that I can increase the speed of games a lot less before they start lagging than before. I am not sure whether the recent performance fixes are to blame, but I noticed it after these were included.
I will attach a replay from Impact with three players (r6063). I'm curious to know whether this affect others or if there is something weird going on on my system.
When I attempt to load it on my machine, I'm able to run it at 30x for a while before it starts lagging, and I have to turn it down to less than 10x. When playing the game, it got so bad that even 2x would lag. This is by the way the second game I noticed this problem in, so it seem to affect all games I play.
I realize that the more buildings and workers are present on the map, the less potential max speed will be, but it used to be a lot more.
For comparison, I loaded the replay from last play day where we played Ancient Sun of Fire in build16. There I was able to keep the speed at 50x until the first players reached the center before it started lagging so bad I had to decrease the speed.
Widelands r6063 on Ubuntu 11.04.
tags: | added: regression |
I can reproduce the lag. The culprit is not the new optimizations (or at least I hevily doubt it). The culprit is Map::find_reachable which makes ~20% of CPU on my box. I have no idea if this is related to the blocking stones in the middle or the water area around.
Please do the follwing for more information: recheck a similar game with b16 on the same map (I assume the lag is there as well) AND with the current build, try on another map (like ancient sun of fire). It should be sufficient to let CPU vs CPU.