/Engine/Source/Runtime/Navmesh/Public/DetourCrowd/DetourPathCorridor.h
The more inaccurate the agent movement, the more beneficial this function becomes. Simply adjust the frequency of the call to match the needs to the agent.
bool optimizePathTopology ( [dtNavMeshQuery](API\Runtime\Navmesh\Detour\dtNavMeshQuery) * navquery, const [dtQueryFilter](API\Runtime\Navmesh\Detour\dtQueryFilter) * filter )