diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-12 10:36:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 10:36:18 +0100 |
commit | a5dedfe2609f22bbf497efd1ef457ba8487ce7c8 (patch) | |
tree | 7dc3f32261d73da5efc94c10505dbd625b5b32ba /main/performance.h | |
parent | 0e4e782ada0bdd4ef19415f82a6373e2d79f7ecc (diff) | |
parent | 9802914f9793b6888cc70e3d7f0d815bdd5188bb (diff) |
Merge pull request #70731 from smix8/navigationserver_performance_monitor_4.x
Add NavigationServer Performance Monitor
Diffstat (limited to 'main/performance.h')
-rw-r--r-- | main/performance.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/performance.h b/main/performance.h index 14695ab5a3..34162b2da9 100644 --- a/main/performance.h +++ b/main/performance.h @@ -50,6 +50,7 @@ class Performance : public Object { double _process_time; double _physics_process_time; + double _navigation_process_time; class MonitorCall { Callable _callable; @@ -69,6 +70,7 @@ public: TIME_FPS, TIME_PROCESS, TIME_PHYSICS_PROCESS, + TIME_NAVIGATION_PROCESS, MEMORY_STATIC, MEMORY_STATIC_MAX, MEMORY_MESSAGE_BUFFER_MAX, @@ -89,6 +91,15 @@ public: PHYSICS_3D_COLLISION_PAIRS, PHYSICS_3D_ISLAND_COUNT, AUDIO_OUTPUT_LATENCY, + NAVIGATION_ACTIVE_MAPS, + NAVIGATION_REGION_COUNT, + NAVIGATION_AGENT_COUNT, + NAVIGATION_LINK_COUNT, + NAVIGATION_POLYGON_COUNT, + NAVIGATION_EDGE_COUNT, + NAVIGATION_EDGE_MERGE_COUNT, + NAVIGATION_EDGE_CONNECTION_COUNT, + NAVIGATION_EDGE_FREE_COUNT, MONITOR_MAX }; @@ -105,6 +116,7 @@ public: void set_process_time(double p_pt); void set_physics_process_time(double p_pt); + void set_navigation_process_time(double p_pt); void add_custom_monitor(const StringName &p_id, const Callable &p_callable, const Vector<Variant> &p_args); void remove_custom_monitor(const StringName &p_id); |