]> git.sesse.net Git - stockfish/blobdiff - src/timeman.cpp
Increase base time use and limit max used.
[stockfish] / src / timeman.cpp
index 0021e96b7b7dc7c2a869efbf6d900945ab132a4a..45e9db5863ef4ce74bb415573942568bb39182d3 100644 (file)
@@ -77,9 +77,9 @@ void TimeManagement::init(Search::LimitsType& limits, Color us, int ply) {
   // game time for the current move, so also cap to 20% of available game time.
   if (limits.movestogo == 0)
   {
-      opt_scale = std::min(0.007 + std::pow(ply + 3.0, 0.5) / 250.0,
+      opt_scale = std::min(0.008 + std::pow(ply + 3.0, 0.5) / 250.0,
                            0.2 * limits.time[us] / double(timeLeft));
-      max_scale = 4 + std::pow(ply + 3, 0.3);
+      max_scale = 4 + std::min(36, ply) / 12.0;
   }
 
   // x moves in y seconds (+ z increment)