1
0
mirror of https://github.com/vcmi/vcmi.git synced 2026-05-22 09:55:17 +02:00

Nullkiller: small optimization of AIPathfinder for big maps

This commit is contained in:
Andrii Danylchenko
2021-05-16 14:56:13 +03:00
committed by Andrii Danylchenko
parent 07b6b0605c
commit 5bfe71c8f3
13 changed files with 115 additions and 58 deletions
@@ -172,6 +172,8 @@ bool ObjectClusterizer::shouldVisitObject(const CGObjectInstance * obj) const
void ObjectClusterizer::clusterize()
{
auto start = boost::chrono::high_resolution_clock::now();
nearObjects.reset();
farObjects.reset();
blockedObjects.clear();
@@ -276,4 +278,6 @@ void ObjectClusterizer::clusterize()
}
#endif
}
logAi->trace("Clusterization complete in %ld", timeElapsed(start));
}