X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=9ab8c800d8fbde01527d266b6a8fc1d0a9c314b8;hb=c89274d8fb25d1c647a13918ccbc568347cb24a4;hp=8ef2513dd1a895c0fdda2ed28af7c5587f06de51;hpb=81e9cf043a7e8ac1aeb579e6ad17c695f7fb3d47;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 8ef2513d..9ab8c800 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -856,7 +856,8 @@ split_point_start: // At split points actual search starts from here && !captureOrPromotion && !inCheck && !dangerous - && move != ttMove) + && move != ttMove + && bestValue > VALUE_MATED_IN_MAX_PLY) { // Move count based pruning if ( depth < 16 * ONE_PLY @@ -878,9 +879,14 @@ split_point_start: // At split points actual search starts from here if (futilityValue < beta) { + bestValue = std::max(bestValue, futilityValue); + if (SpNode) + { splitPoint->mutex.lock(); - + if (bestValue > splitPoint->bestValue) + splitPoint->bestValue = bestValue; + } continue; }