diff --git a/src/search.cpp b/src/search.cpp index b4569d9a5..6687ecb22 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1251,13 +1251,12 @@ moves_loop: // When in check, search starts here if (!ttData.move) r += 1199 + 35 * msb(depth); - const int threshold1 = depth <= 4 ? 2000 : 3200; - const int threshold2 = depth <= 4 ? 3500 : 4600; + if (depth <= 4) + r += 1150; // Note that if expected reduction is high, we reduce search depth here value = -search(pos, ss + 1, -(alpha + 1), -alpha, - newDepth - (r > threshold1) - (r > threshold2 && newDepth > 2), - !cutNode); + newDepth - (r > 3200) - (r > 4600 && newDepth > 2), !cutNode); } // For PV nodes only, do a full PV search on the first move or after a fail high,