X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=cd38e62920f4dc37b00b0b7ca43c7742f9232056;hb=285a79eaa0b89b342b5e4f217682e083a6fd33f5;hp=ff6bf335d06d695bd17abda8567b7981c8d9e79a;hpb=e1f12aa4e61a8bbb772918c405137acdd85e3eec;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index ff6bf335..cd38e629 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -466,8 +466,7 @@ void Thread::search() { // If the bestMove is stable over several iterations, reduce time accordingly timeReduction = lastBestMoveDepth + 10 < completedDepth ? 1.63 : 0.73; double reduction = (1.56 + mainThread->previousTimeReduction) / (2.20 * timeReduction); - double bestMoveInstability = 1.073 + std::max(1.0, 2.25 - 9.9 / rootDepth) - * totBestMoveChanges / Threads.size(); + double bestMoveInstability = 1 + 1.7 * totBestMoveChanges / Threads.size(); int complexity = mainThread->complexityAverage.value(); double complexPosition = std::clamp(1.0 + (complexity - 326) / 1618.1, 0.5, 1.5);