You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Merge pull request #93583 from smix8/obstacle_monitor
Add navigation obstacles to performance monitor stats
This commit is contained in:
@@ -907,6 +907,7 @@ void NavMap::sync() {
|
||||
int _new_pm_edge_merge_count = pm_edge_merge_count;
|
||||
int _new_pm_edge_connection_count = pm_edge_connection_count;
|
||||
int _new_pm_edge_free_count = pm_edge_free_count;
|
||||
int _new_pm_obstacle_count = obstacles.size();
|
||||
|
||||
// Check if we need to update the links.
|
||||
if (regenerate_polygons) {
|
||||
@@ -1219,6 +1220,7 @@ void NavMap::sync() {
|
||||
pm_edge_merge_count = _new_pm_edge_merge_count;
|
||||
pm_edge_connection_count = _new_pm_edge_connection_count;
|
||||
pm_edge_free_count = _new_pm_edge_free_count;
|
||||
pm_obstacle_count = _new_pm_obstacle_count;
|
||||
}
|
||||
|
||||
void NavMap::_update_rvo_obstacles_tree_2d() {
|
||||
|
||||
Reference in New Issue
Block a user