1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Enchance the performance of AStar by using a LocalVector(2)

This commit is contained in:
Yuri Rubinsky
2023-01-27 13:56:23 +03:00
parent 518b9e5801
commit cc0a243ce0
3 changed files with 16 additions and 16 deletions

View File

@@ -124,7 +124,7 @@ private: // Internal routines.
return &points[p_y][p_x];
}
void _get_nbors(Point *p_point, List<Point *> &r_nbors);
void _get_nbors(Point *p_point, LocalVector<Point *> &r_nbors);
Point *_jump(Point *p_from, Point *p_to);
bool _solve(Point *p_begin_point, Point *p_end_point);