Add memory profiling events to the main areas of the engine

This commit is contained in:
Wojtek Figat
2025-05-22 04:47:01 +02:00
parent 32bc73610f
commit c639a3103c
101 changed files with 502 additions and 17 deletions

View File

@@ -34,9 +34,13 @@ bool NavCrowd::Init(const NavAgentProperties& agentProperties, int32 maxAgents)
if (!navMeshRuntime)
{
if (NavMeshRuntime::Get())
{
LOG(Error, "Cannot create crowd. Failed to find a navmesh that matches a given agent properties.");
}
else
{
LOG(Error, "Cannot create crowd. No navmesh is loaded.");
}
}
#endif
return Init(agentProperties.Radius * 3.0f, maxAgents, navMeshRuntime);