From d21eeeae076e86fa1e832c357b083859bff91055 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sat, 19 Mar 2011 01:31:49 +0000 Subject: [PATCH] - lessen pathfinder max nodes to see if this gives better performance --- source/glest_game/ai/path_finder.cpp | 2 +- source/glest_game/world/world.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/ai/path_finder.cpp b/source/glest_game/ai/path_finder.cpp index ed9e508d..aa11076a 100644 --- a/source/glest_game/ai/path_finder.cpp +++ b/source/glest_game/ai/path_finder.cpp @@ -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; diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index 19f352a3..3440845f 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -299,7 +299,7 @@ void World::updateAllFactionUnits() { } } if(workThreadsFinished == false) { - sleep(0); + //sleep(0); } else { break;