- lessen pathfinder max nodes to see if this gives better performance
This commit is contained in:
parent
505abbd1ec
commit
d21eeeae07
|
@ -39,7 +39,7 @@ namespace Glest{ namespace Game{
|
|||
|
||||
const int PathFinder::maxFreeSearchRadius = 10;
|
||||
//const int PathFinder::pathFindNodesMax= 400;
|
||||
int PathFinder::pathFindNodesMax = 350;
|
||||
int PathFinder::pathFindNodesMax = 300;
|
||||
const int PathFinder::pathFindRefresh = 10;
|
||||
const int PathFinder::pathFindBailoutRadius = 20;
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@ void World::updateAllFactionUnits() {
|
|||
}
|
||||
}
|
||||
if(workThreadsFinished == false) {
|
||||
sleep(0);
|
||||
//sleep(0);
|
||||
}
|
||||
else {
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue