]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Make extra time for bestMoveInstability dependent on rootdepth.
[stockfish] / src / search.cpp
index 2c7c6fd671c55e6d9277ca675077f7b4debde2ef..100ddc719e1b474d02c6c0c2df4a022e71e2940c 100644 (file)
@@ -480,8 +480,8 @@ void Thread::search() {
               totBestMoveChanges += th->bestMoveChanges;
               th->bestMoveChanges = 0;
           }
-          double bestMoveInstability = 1 + 2 * totBestMoveChanges / Threads.size();
-
+          double bestMoveInstability = 1.073 + std::max(1.0, 2.25 - 9.9 / rootDepth)
+                                              * totBestMoveChanges / Threads.size();
           double totalTime = Time.optimum() * fallingEval * reduction * bestMoveInstability;
 
           // Cap used time in case of a single legal move for a better viewer experience in tournaments