Disable crowd neighbours building for optimisation

This commit is contained in:
Семенов Иван 2025-03-04 16:29:53 +03:00
parent 0b888b16fb
commit 6aff9574c9
1 changed files with 4 additions and 2 deletions

View File

@ -425,11 +425,13 @@ namespace DotRecast.Detour.Crowd
// Optimize path topology.
UpdateTopologyOptimization(agents, dt);
#region Disabled for performance issues
// Register agents to proximity grid.
BuildProximityGrid(agents);
// BuildProximityGrid(agents);
// Get nearby navmesh segments and agents to collide with.
BuildNeighbours(agents);
// BuildNeighbours(agents);
#endregion
// Find next corner to steer to.
FindCorners(agents, debug);