]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Thread based reduction tweak.
[stockfish] / src / search.cpp
index 1d84102303989cce47a9e3ea2615ec623d8fd159..99c2b09f9ef42b4032c95864e7f4e0e497147ec5 100644 (file)
@@ -1185,7 +1185,8 @@ moves_loop: // When in check, search starts from here
               || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
               || cutNode
               || (!PvNode && !formerPv && captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 3678)
-              || thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024))
+              || thisThread->ttHitAverage < 432 * TtHitAverageResolution * TtHitAverageWindow / 1024)
+          && (!PvNode || ss->ply > 1 || thisThread->id() % 4 != 3))
       {
           Depth r = reduction(improving, depth, moveCount);