mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-03 01:27:26 +00:00
Minor A* optimisations (#1335)
* Add some extra comments * Remove the redundant closedTiles variable * Rename some variables to better match the common naming schemes Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
co-authored by
Metal Gear Sloth
parent
405a610009
commit
a77f219515
@@ -103,8 +103,8 @@ namespace Content.Client.GameObjects.EntitySystems.AI
|
||||
|
||||
var label = (Label) _aiBoxes[entity].GetChild(0).GetChild(1);
|
||||
label.Text = $"Pathfinding time (ms): {message.TimeTaken * 1000:0.0000}\n" +
|
||||
$"Nodes traversed: {message.ClosedTiles.Count}\n" +
|
||||
$"Nodes per ms: {message.ClosedTiles.Count / (message.TimeTaken * 1000)}";
|
||||
$"Nodes traversed: {message.CameFrom.Count}\n" +
|
||||
$"Nodes per ms: {message.CameFrom.Count / (message.TimeTaken * 1000)}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user