Skip to content

Commit

Permalink
Small simplification in history pruning.
Browse files Browse the repository at this point in the history
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 #4578

Bench: 2984341
  • Loading branch information
locutus2 authored and vondele committed May 20, 2023
1 parent f030a1c commit 4f24ee0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,8 +1021,8 @@ namespace {
+ (*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)];
Expand Down

0 comments on commit 4f24ee0

Please sign in to comment.