Skip to content

Commit d11f49b

Browse files
locutus2vondele
authored andcommitted
Remove log depth reduction terms.
Motivated by the elo loss of last VVLTC regression test i remove the new log depth reductions (tuned at STC) to regain strength at VVLTC. The constant terms are adjusted based on the old values and the changes from the last added VVLTC tuning. Passed VVLTC with STC bound: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 53802 W: 14030 L: 13740 D: 26032 Ptnml(0-2): 5, 4924, 16754, 5212, 6 https://tests.stockfishchess.org/tests/view/68a9a9f575da51a345a5a675 Passed VVLTC with LTC bound: LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 53658 W: 14022 L: 13699 D: 25937 Ptnml(0-2): 3, 4894, 16712, 5217, 3 https://tests.stockfishchess.org/tests/view/68a8d2b2b6fb3300203bca77 closes #6257 Bench: 2566780
1 parent 7fe46b5 commit d11f49b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/search.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,27 +1177,27 @@ Value Search::Worker::search(
11771177

11781178
// These reduction adjustments have no proven non-linear scaling
11791179

1180-
r += 700 - 6 * msb(depth); // Base reduction offset to compensate for other tweaks
1181-
r -= moveCount * (64 - 2 * msb(depth));
1180+
r += 671; // Base reduction offset to compensate for other tweaks
1181+
r -= moveCount * 66;
11821182
r -= std::abs(correctionValue) / 30450;
11831183

11841184
// Increase reduction for cut nodes
11851185
if (cutNode)
1186-
r += 3092 + 2 * msb(depth) + (980 + 15 * msb(depth)) * !ttData.move;
1186+
r += 3094 + 1056 * !ttData.move;
11871187

11881188
// Increase reduction if ttMove is a capture
11891189
if (ttCapture)
1190-
r += 1467 - 40 * msb(depth);
1190+
r += 1415;
11911191

11921192
// Increase reduction if next ply has a lot of fail high
11931193
if ((ss + 1)->cutoffCnt > 2)
1194-
r += 1041 + 34 * msb(depth) + allNode * (752 + 226 * msb(depth));
1194+
r += 1051 + allNode * 814;
11951195

11961196
r += (ss + 1)->quietMoveStreak * 50;
11971197

11981198
// For first picked move (ttMove) reduce reduction
11991199
if (move == ttData.move)
1200-
r -= 2096 + 27 * msb(depth);
1200+
r -= 2018;
12011201

12021202
if (capture)
12031203
ss->statScore = 803 * int(PieceValue[pos.captured_piece()]) / 128
@@ -1208,7 +1208,7 @@ Value Search::Worker::search(
12081208
+ (*contHist[1])[movedPiece][move.to_sq()];
12091209

12101210
// Decrease/increase reduction for moves with a good/bad history
1211-
r -= ss->statScore * (734 - 12 * msb(depth)) / 8192;
1211+
r -= ss->statScore * 794 / 8192;
12121212

12131213
// Step 17. Late moves reduction / extension (LMR)
12141214
if (depth >= 2 && moveCount > 1)
@@ -1250,7 +1250,7 @@ Value Search::Worker::search(
12501250
{
12511251
// Increase reduction if ttMove is not present
12521252
if (!ttData.move)
1253-
r += 1178 + 35 * msb(depth);
1253+
r += 1118;
12541254

12551255
if (depth < 5)
12561256
r += 1080;

0 commit comments

Comments
 (0)