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:
committed by
Andrii Danylchenko
parent
07b6b0605c
commit
5bfe71c8f3
@@ -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));
|
||||
}
|
||||
Reference in New Issue
Block a user