X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=5306bb9a0084b2ee50ae7b4fc83cbd7324ba2bd0;hb=785b70809783430ff1e0bf856dac3b9bfa6fe826;hp=f634b2d2d67b97beaf9a67d97f50b709f509cb86;hpb=0b7cc8bd2f5a51de9f911fcdfb253b1c9f513897;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index f634b2d2..5306bb9a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1132,6 +1132,9 @@ moves_loop: // When in check, search starts from here { Depth r = reduction(improving, depth, moveCount); + if (PvNode) + r--; + // Decrease reduction if the ttHit running average is large (~0 Elo) if (thisThread->ttHitAverage > 537 * TtHitAverageResolution * TtHitAverageWindow / 1024) r--; @@ -1461,7 +1464,7 @@ moves_loop: // When in check, search starts from here // Initialize a MovePicker object for the current position, and prepare // to search the moves. Because the depth is <= 0 here, only captures, - // queen and checking knight promotions, and other checks(only if depth >= DEPTH_QS_CHECKS) + // queen promotions, and other checks (only if depth >= DEPTH_QS_CHECKS) // will be generated. MovePicker mp(pos, ttMove, depth, &thisThread->mainHistory, &thisThread->captureHistory,