]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Don't adjust MoveOverhead by increment
[stockfish] / src / timeman.cpp
index f794ab133326e8a31ed8a50044a7d62c92726cdc..0021e96b7b7dc7c2a869efbf6d900945ab132a4a 100644 (file)
@@ -64,9 +64,6 @@ void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) {
   //Maximum move horizon of 50 moves
   int mtg = limits.movestogo ? std::min(limits.movestogo, 50) : 50;
 
-  // Adjust moveOverhead if there are tiny increments
-  moveOverhead = std::max(10, std::min<int>(limits.inc[us] / 2, moveOverhead));
-
   // Make sure timeLeft is > 0 since we may use it as a divisor
   TimePoint timeLeft =  std::max(TimePoint(1),
       limits.time[us] + limits.inc[us] * (mtg - 1) - moveOverhead * (2 + mtg));