From 6aff9574c9350e668a5c89b4a1de62ae93d7329c Mon Sep 17 00:00:00 2001 From: Greysnek Date: Tue, 4 Mar 2025 16:29:53 +0300 Subject: [PATCH] Disable crowd neighbours building for optimisation --- src/DotRecast.Detour.Crowd/DtCrowd.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/DotRecast.Detour.Crowd/DtCrowd.cs b/src/DotRecast.Detour.Crowd/DtCrowd.cs index 52c6417..6d9a978 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowd.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowd.cs @@ -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);