Skip to content

Commit 377a3a5

Browse files
tsojvondele
authored andcommitted
Depth dependent reduction threshold when full-depth re-search
STC: https://tests.stockfishchess.org/tests/view/68894d577b562f5f7b73273b LLR: 2.98 (-2.94,2.94) <0.00,2.00> Total: 155072 W: 40651 L: 40150 D: 74271 Ptnml(0-2): 609, 18271, 39292, 18738, 626 LTC: https://tests.stockfishchess.org/tests/view/688c2705502b34dd5e71127a LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 321012 W: 82891 L: 81995 D: 156126 Ptnml(0-2): 227, 34421, 90285, 35375, 198 This commit was generated using qwen3-235b-a22b-thinking-2507: Prompt: https://rentry.co/iqtaoht7 Reasoning/thinking: https://rentry.co/wm6t9hye closes #6210 Bench: 2983938
1 parent 14a2e50 commit 377a3a5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Jonathan McDermid (jonathanmcdermid)
125125
Joost VandeVondele (vondele)
126126
Joseph Ellis (jhellis3)
127127
Joseph R. Prostko
128+
Jost Triller (tsoj)
128129
Jörg Oster (joergoster)
129130
Julian Willemer (NightlyKing)
130131
jundery

src/search.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,9 +1251,13 @@ Value Search::Worker::search(
12511251
if (!ttData.move)
12521252
r += 1139;
12531253

1254+
const int threshold1 = depth <= 4 ? 2000 : 3200;
1255+
const int threshold2 = depth <= 4 ? 3500 : 4600;
1256+
12541257
// Note that if expected reduction is high, we reduce search depth here
12551258
value = -search<NonPV>(pos, ss + 1, -(alpha + 1), -alpha,
1256-
newDepth - (r > 3200) - (r > 4600 && newDepth > 2), !cutNode);
1259+
newDepth - (r > threshold1) - (r > threshold2 && newDepth > 2),
1260+
!cutNode);
12571261
}
12581262

12591263
// For PV nodes only, do a full PV search on the first move or after a fail high,

0 commit comments

Comments
 (0)