From a9b7638e966bf59b6216d319d57f65bc16395467 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sun, 27 Jul 2025 19:13:54 +0300 Subject: [PATCH] Simplify newDepth modification formulas Passed STC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 21856 W: 5709 L: 5471 D: 10676 Ptnml(0-2): 77, 2466, 5589, 2734, 62 https://tests.stockfishchess.org/tests/view/68862ea4966ed85face24a27 Passed LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 108828 W: 27893 L: 27763 D: 53172 Ptnml(0-2): 59, 11860, 30435, 12012, 48 https://tests.stockfishchess.org/tests/view/68863046966ed85face24a3b closes https://github.com/official-stockfish/Stockfish/pull/6181 Bench: 3069051 --- src/search.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index c517fd496..b0efea869 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1229,7 +1229,7 @@ moves_loop: // When in check, search starts here // Do a full-depth search when reduced LMR search fails high // (*Scaler) Usually doing more shallower searches // doesn't scale well to longer TCs - if (value > alpha && d < newDepth) + if (value > alpha) { // Adjust full-depth search based on LMR results - if the result was // good enough search deeper, if it was bad enough search shallower. @@ -1244,8 +1244,6 @@ moves_loop: // When in check, search starts here // Post LMR continuation history updates update_continuation_histories(ss, movedPiece, move.to_sq(), 1412); } - else if (value > alpha && value < bestValue + 9) - newDepth--; } // Step 18. Full-depth search when LMR is skipped