From 508c07c5ea675893d1298480564d6018e4f78b17 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Wed, 28 Feb 2024 21:09:32 +0100 Subject: [PATCH] Add profile event for navcrowd init --- Source/Engine/Navigation/NavCrowd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Engine/Navigation/NavCrowd.cpp b/Source/Engine/Navigation/NavCrowd.cpp index 51f77da08..f933ea12f 100644 --- a/Source/Engine/Navigation/NavCrowd.cpp +++ b/Source/Engine/Navigation/NavCrowd.cpp @@ -46,6 +46,7 @@ bool NavCrowd::Init(float maxAgentRadius, int32 maxAgents, NavMeshRuntime* navMe { if (!_crowd || !navMesh) return true; + PROFILE_CPU(); // This can happen on game start when no navmesh is loaded yet (eg. navmesh tiles data is during streaming) so wait for navmesh if (navMesh->GetNavMesh() == nullptr)