Skip to content

Commit ac9ab10

Browse files
committed
Stop the depth decrease at half the root depth.
Bench: 3328997
1 parent 0835ba5 commit ac9ab10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void Thread::search() {
398398
int failedHighCnt = 0;
399399
while (true)
400400
{
401-
adjustedDepth = std::max(ONE_PLY, rootDepth - failedHighCnt * ONE_PLY);
401+
adjustedDepth = std::max(ONE_PLY, std::max(rootDepth / 2, rootDepth - failedHighCnt * ONE_PLY));
402402
bestValue = ::search<PV>(rootPos, ss, alpha, beta, adjustedDepth, false);
403403

404404
// Bring the best move to the front. It is critical that sorting

0 commit comments

Comments
 (0)