]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Stockfish 1.5.1
[stockfish] / src / search.cpp
index a0215bee2741e34adf2c47de4d41a5a9b6305ba1..3b5cae4541eecec487b02bb3cb72c7233492e453 100644 (file)
@@ -199,7 +199,7 @@ namespace {
   Depth ThreatDepth; // heavy SMP read access
 
   // Last seconds noise filtering (LSN)
-  const bool UseLSNFiltering = true;
+  const bool UseLSNFiltering = false;
   const int LSNTime = 4000; // In milliseconds
   const Value LSNValue = value_from_centipawns(200);
   bool loseOnTime = false;
@@ -471,10 +471,10 @@ bool think(const Position& pos, bool infinite, bool ponder, int side_to_move,
       NodesBetweenPolls = Min(MaxNodes, 30000);
       InfiniteSearch = true; // HACK
   }
-  else if (myTime < 1000)
-      NodesBetweenPolls = 100;
-  else if (myTime < 5000)
+  else if (myTime && myTime < 1000)
       NodesBetweenPolls = 1000;
+  else if (myTime && myTime < 5000)
+      NodesBetweenPolls = 5000;
   else
       NodesBetweenPolls = 30000;