Add "d < newDepth" condition for doDeeperSearch

Add "d < newDepth" condition for doDeeperSearch

Passed STC:
LLR: 2.97 (-2.94,2.94) <0.00,2.00>
Total: 66144 W: 17512 L: 17148 D: 31484
Ptnml(0-2): 220, 7726, 16833, 8056, 237
https://tests.stockfishchess.org/tests/view/6887cce67b562f5f7b731a79

Passed LTC:
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 411240 W: 106103 L: 105023 D: 200114
Ptnml(0-2): 256, 44249, 115566, 45257, 292
https://tests.stockfishchess.org/tests/view/6887ec527b562f5f7b731c37

closes https://github.com/official-stockfish/Stockfish/pull/6204

Bench: 2917036
This commit is contained in:
FauziAkram
2025-08-02 16:25:31 +02:00
committed by Joost VandeVondele
parent 62b958f517
commit a37b38bdf0
+1 -1
View File
@@ -1233,7 +1233,7 @@ moves_loop: // When in check, search starts here
{
// Adjust full-depth search based on LMR results - if the result was
// good enough search deeper, if it was bad enough search shallower.
const bool doDeeperSearch = value > (bestValue + 43 + 2 * newDepth);
const bool doDeeperSearch = d < newDepth && value > (bestValue + 43 + 2 * newDepth);
const bool doShallowerSearch = value < bestValue + 9;
newDepth += doDeeperSearch - doShallowerSearch;