#2360 closed defect (fixed)
Speed up territory computation
Reported by: | mimo | Owned by: | mimo |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 16 |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
The function CCmpTerritoryManager::CalculateTerritories() is pretty inefficient for adding different grids.
Running with callgrind the initialisation and the first 10 turns (callgrind crashed after that), CalculateTerritories() is the main time consummer (in term of proper time) with 3% of the total as seen in the png attached. The simple patch added reduces it by nearly a factor 2 as seen in the afterPatch png.
Attachments (3)
Change History (5)
by , 10 years ago
Attachment: | beforePatch.png added |
---|
by , 10 years ago
Attachment: | afterPatch.png added |
---|
by , 10 years ago
comment:1 by , 10 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 10 years ago
Milestone: | Backlog → Alpha 16 |
---|
Note:
See TracTickets
for help on using tickets.
In 14530: