]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Check clock more often
[stockfish] / src / timeman.cpp
index 061de0182f7d75e698d73664b9bf3a25dd603e4b..169c7821c943160e4c995e837a084af2e792964f 100644 (file)
@@ -100,7 +100,7 @@ void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) {
 
   // Never use more than 80% of the available time for this move
   optimumTime = TimePoint(optScale * timeLeft);
-  maximumTime = TimePoint(std::min(0.8 * limits.time[us] - moveOverhead, maxScale * optimumTime));
+  maximumTime = TimePoint(std::min(0.8 * limits.time[us] - moveOverhead, maxScale * optimumTime)) - 10;
 
   if (Options["Ponder"])
       optimumTime += optimumTime / 4;