X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;fp=src%2Ftimeman.cpp;h=0021e96b7b7dc7c2a869efbf6d900945ab132a4a;hp=f794ab133326e8a31ed8a50044a7d62c92726cdc;hb=83c9e5911ef7fe6ff71dc116856fac85bb9076eb;hpb=d116e27f0f6c89c887420890ffe61c6708ef5c08 diff --git a/src/timeman.cpp b/src/timeman.cpp index f794ab13..0021e96b 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -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(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));