Skip to content

Commit ae40f3f

Browse files
authored
Merge pull request official-stockfish#1025 from IIvec/master
nm
2 parents c2b4638 + d320de7 commit ae40f3f

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/search.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ namespace {
6161
// Different node types, used as a template parameter
6262
enum NodeType { NonPV, PV };
6363

64-
// Sizes and phases of the skip-blocks, used for distributing search depths across the threads
65-
constexpr int SkipSize[] = { 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4 };
66-
constexpr int SkipPhase[] = { 0, 1, 0, 1, 2, 3, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 7 };
67-
6864
// Razor and futility margins
6965
constexpr int RazorMargin = 600;
7066
Value futility_margin(Depth d, bool improving) {
@@ -340,14 +336,6 @@ void Thread::search() {
340336
&& !Threads.stop
341337
&& !(Limits.depth && mainThread && rootDepth / ONE_PLY > Limits.depth))
342338
{
343-
// Distribute search depths across the helper threads
344-
if (idx > 0)
345-
{
346-
int i = (idx - 1) % 20;
347-
if (((rootDepth / ONE_PLY + SkipPhase[i]) / SkipSize[i]) % 2)
348-
continue; // Retry with an incremented rootDepth
349-
}
350-
351339
// Age out PV variability metric
352340
if (mainThread)
353341
mainThread->bestMoveChanges *= 0.517;
@@ -992,8 +980,7 @@ namespace {
992980
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
993981
continue;
994982
}
995-
else if ( !extension // (~20 Elo)
996-
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY)))
983+
else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
997984
continue;
998985
}
999986

0 commit comments

Comments
 (0)