From 0b4ea54da999e591284aaeec702b6239ca219b81 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 22 Mar 2013 09:52:41 +0100 Subject: [PATCH] Update bestValue when futility pruning (2) Same idea of 5af8179647b9e80353c in qsearch() but applied to search() After 15500 games at 15+0.05 ELO: 4.48 +-3.4 (95%) LOS: 99.5% Total: 15500 W: 3061 L: 2861 D: 9578 bench: 4985829 --- src/search.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 6dcd9f1d..f99f63be 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -879,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; } -- 2.39.2