summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-01-13 08:35:57 +0100
committersmix8 <52464204+smix8@users.noreply.github.com>2023-01-13 09:38:32 +0100
commitbe9224eaa8c138e4628563671af0f82a33d3f7cf (patch)
tree001dc4003845c53bb9f78c73d4001af155879c77 /main
parent7c2768c2f8abc2e81a55be72b436de69d9f01bf9 (diff)
Fix duplicate NavigationServer process
NavigationServer process was called twice each frame Also adds 3 missing MONITOR_TYPE entries.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp1
-rw-r--r--main/performance.cpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index 6b04cdc6d6..e38669f161 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -3035,7 +3035,6 @@ bool Main::iteration() {
break;
}
- NavigationServer3D::get_singleton()->process(physics_step * time_scale);
uint64_t navigation_begin = OS::get_singleton()->get_ticks_usec();
NavigationServer3D::get_singleton()->process(physics_step * time_scale);
diff --git a/main/performance.cpp b/main/performance.cpp
index 448ddd0e96..869a947b2a 100644
--- a/main/performance.cpp
+++ b/main/performance.cpp
@@ -249,6 +249,9 @@ Performance::MonitorType Performance::get_monitor_type(Monitor p_monitor) const
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
MONITOR_TYPE_QUANTITY,
+ MONITOR_TYPE_QUANTITY,
+ MONITOR_TYPE_QUANTITY,
+ MONITOR_TYPE_QUANTITY,
};