X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftimeman.cpp;h=88a52bbde894d76e754dfd7e6a64081d0e49b773;hp=11405bb9a01c3b954428dd32b857bf8f0071f917;hb=15e21911110f9d459c4fef2bb17903d97345d0b9;hpb=b66552fc277ec6587bd93514a7a175d7905b2c6d diff --git a/src/timeman.cpp b/src/timeman.cpp index 11405bb9..88a52bbd 100644 --- a/src/timeman.cpp +++ b/src/timeman.cpp @@ -89,11 +89,9 @@ void TimeManager::init(const Search::LimitsType& limits, int currentPly, Color u int hypMTG, hypMyTime, t1, t2; // Read uci parameters - int emergencyMoveHorizon = 40; - int emergencyBaseTime = Options["Move Overhead"] * 2; - int emergencyMoveTime = Options["Move Overhead"]; - int minThinkingTime = Options["Minimum Thinking Time"]; - int slowMover = Options["Slow Mover"]; + int moveOverhead = Options["Move Overhead"]; + int minThinkingTime = Options["Minimum Thinking Time"]; + int slowMover = Options["Slow Mover"]; // Initialize unstablePvFactor to 1 and search times to maximum values unstablePvFactor = 1; @@ -106,8 +104,7 @@ void TimeManager::init(const Search::LimitsType& limits, int currentPly, Color u // Calculate thinking time for hypothetical "moves to go"-value hypMyTime = limits.time[us] + limits.inc[us] * (hypMTG - 1) - - emergencyBaseTime - - emergencyMoveTime * std::min(hypMTG, emergencyMoveHorizon); + - moveOverhead * (2 + std::min(hypMTG, 40)); hypMyTime = std::max(hypMyTime, 0);