]> git.sesse.net Git - stockfish/commitdiff
Small simplification in history pruning.
authorStefan Geschwentner <stgeschwentner@gmail.com>
Fri, 19 May 2023 21:16:48 +0000 (23:16 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 20 May 2023 07:58:51 +0000 (09:58 +0200)
Remove the constant term of the history threshold which lowers the chance that pruning occurs.
As compensation allow pruning at a slightly higher depth.

Passed STC:
https://tests.stockfishchess.org/tests/view/64634c9a87f6567dd4df4901
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 101536 W: 27156 L: 27012 D: 47368
Ptnml(0-2): 266, 11165, 27772, 11289, 276

Passed LTC:
https://tests.stockfishchess.org/tests/view/6463d68b17982fde89d2bc2b
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 32154 W: 8741 L: 8543 D: 14870
Ptnml(0-2): 8, 3093, 9687, 3271, 18

Passed LTC: retest on top of VLTC tuning PR 4571 because this changes the history depth factor (use this new factor here)
https://tests.stockfishchess.org/tests/view/6467300e165c4b29ec0afd3f
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 99270 W: 26840 L: 26707 D: 45723
Ptnml(0-2): 36, 9753, 29928, 9878, 40

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

Bench: 2984341

src/search.cpp

index 429db9a5b28d4d40beee59ffeff974f4fb4ae534..10844746ccc88de74362ddf30d65c4dbb5896280 100644 (file)
@@ -1021,8 +1021,8 @@ moves_loop: // When in check, search starts here
                             + (*contHist[3])[movedPiece][to_sq(move)];
 
               // Continuation history based pruning (~2 Elo)
-              if (   lmrDepth < 5
-                  && history < -3792 * (depth - 1))
+              if (   lmrDepth < 6
+                  && history < -3792 * depth)
                   continue;
 
               history += 2 * thisThread->mainHistory[us][from_to(move)];