You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current A* algorithm used in Map::pathfindPointToPoint uses a rich AStarAlgorithmPoint for each point's position. However, it should be able to run with a much lower overhead because both the move cost as well the direction can be inferred by a simple derivative of explored points.
The text was updated successfully, but these errors were encountered:
When I start glob2, pmap reports a mem usage total of 671MB. That goes up to 690MB in a four player game with about 600 units. I say it's premature optimisation to spend time on this. Any PR that increases the code complexity to save some MB on big games would be a net negative.
I never thought for this issue to be urgent, but I realized that while reading the code for something else, and thought that it was good to document that.
stephanemagnenat
changed the title
A* implement takes too much memory
A* implementation takes too much memory
Nov 17, 2023
The current A* algorithm used in
Map::pathfindPointToPoint
uses a richAStarAlgorithmPoint
for each point's position. However, it should be able to run with a much lower overhead because both the move cost as well the direction can be inferred by a simple derivative of explored points.The text was updated successfully, but these errors were encountered: