From be9224eaa8c138e4628563671af0f82a33d3f7cf Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Fri, 13 Jan 2023 08:35:57 +0100 Subject: [PATCH] Fix duplicate NavigationServer process NavigationServer process was called twice each frame Also adds 3 missing MONITOR_TYPE entries. --- main/main.cpp | 1 - main/performance.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 6b04cdc6d65..e38669f1618 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 448ddd0e963..869a947b2ae 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, };