]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do more aggressive pruning for some node types
[stockfish] / src / search.cpp
index c926c1d20649d2c460f02c53d106b71b682a5cca..5e022e664ca18266ee55c457b85a03d3f27481f4 100644 (file)
@@ -1065,6 +1065,8 @@ moves_loop: // When in check, search starts here
 
               history += thisThread->mainHistory[us][from_to(move)];
 
+              lmrDepth = std::max(0, lmrDepth - (beta - alpha < thisThread->rootDelta / 4));
+
               // Futility pruning: parent node (~5 Elo)
               if (   !ss->inCheck
                   && lmrDepth < 8