Fighting causes lag

Bug #536211 reported by dwarik
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
widelands
Fix Released
High
Raul Ferriz

Bug Description

flighting causes an insane amount of lag

Timowi (timo-wingender)
Changed in widelands:
status: New → Confirmed
importance: Undecided → High
tags: added: military speed
summary: - lag
+ Fighting causes lag
Changed in widelands:
assignee: nobody → Raul Ferriz (raul.ferriz)
status: Confirmed → Triaged
Revision history for this message
Nicolai Hähnle (nha) wrote :

Somehow I managed to not find this bug report in a search, thus the duplicate. Is it possible to move attachments between bug reports? Bug #550210 contains a savegame that shows this problem in action.

tags: added: performance soldiers
Revision history for this message
Nicolai Hähnle (nha) wrote :

Suggested a "fix" in my fixes branch. It dramatically reduces CPU load of fights, and ensures that the CPU load stays proportional to the number of fighting soldiers.

However, fights still require a significant amount of CPU, and perhaps worse, the CPU usage is quite erratic; it doesn't distribute well over time, there are often peaks of usage. I don't see an easy way to fix that, but fortunately it should only be a real problem in truly epic battles taking place in choke points.

(I suppose the biggest problem is that the user interface becomes choppy when the game logic requires more CPU. We had some pie-in-the-sky discussion on possible solutions based on multi-threading on IRC, but that kind of thing is probably very far away.)

Changed in widelands:
milestone: none → build16-rc1
Nicolai Hähnle (nha)
Changed in widelands:
status: Triaged → In Progress
Nicolai Hähnle (nha)
Changed in widelands:
status: In Progress → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Released in build16-rc1

Changed in widelands:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

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