X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=inline;f=src%2Fsearch.cpp;h=768a22a4d36b50ce919248e7c0dc4cc95fe286c8;hb=2feb9d5100038038b371c91562bbf5342a815c39;hp=6f0ddea4e8671209dce93d5f7969dd844a03ef56;hpb=e96f56adfa6860933d5027547ea953e954f5d8c9;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 6f0ddea4..768a22a4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1035,7 +1035,7 @@ namespace { else value = alpha + 1; // Just to trigger next condition - if (value > alpha) // Go with full depth pv search + if (value > alpha) // Go with full depth non-pv search { ss[ply].reduction = Depth(0); value = -search(pos, ss, -alpha, newDepth, ply+1, true, threadID); @@ -1314,12 +1314,14 @@ namespace { continue; // Value based pruning - if (depth < 6 * OnePly && approximateEval < beta) + if (depth < 7 * OnePly && approximateEval < beta) { if (futilityValue == VALUE_NONE) futilityValue = evaluate(pos, ei, threadID) - + (depth < 2 * OnePly ? FutilityMargin1 - : FutilityMargin2 + (depth - 2*OnePly) * 32); + + (depth < 2 * OnePly ? FutilityMargin1 : + + (depth < 6 * OnePly ? FutilityMargin2 + (depth - 2*OnePly) * 32 + : FutilityMargin2 + (depth - 2*OnePly) * 64)); + if (futilityValue < beta) { if (futilityValue > bestValue)