From 01ff8806cdff636734d14376ddfcf85a396f8d75 Mon Sep 17 00:00:00 2001 From: Greysnek Date: Wed, 19 Mar 2025 12:50:27 +0300 Subject: [PATCH] Increase max target find path iterations --- src/DotRecast.Detour.Crowd/DtCrowdConfig.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour.Crowd/DtCrowdConfig.cs b/src/DotRecast.Detour.Crowd/DtCrowdConfig.cs index 63161aa..e3e38ad 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowdConfig.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowdConfig.cs @@ -25,7 +25,7 @@ namespace DotRecast.Detour.Crowd public int pathQueueSize = 32; // Max number of path requests in the queue public int maxFindPathIterations = 100; // Max number of sliced path finding iterations executed per update (used to handle longer paths and replans) - public int maxTargetFindPathIterations = 20; // Max number of sliced path finding iterations executed per agent to find the initial path to target + public int maxTargetFindPathIterations = 100; // Max number of sliced path finding iterations executed per agent to find the initial path to target public float topologyOptimizationTimeThreshold = 0.5f; // Min time between topology optimizations (in seconds) public int checkLookAhead = 10; // The number of polygons from the beginning of the corridor to check to ensure path validity public float targetReplanDelay = 1.0f; // Min time between target re-planning (in seconds)