From 5868b4cb584f7fcf55e4f901fc059af86c53d89e Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Mon, 13 Jan 2025 18:54:40 -0800 Subject: [PATCH] remove eval== staticeval check in fut pruning Simplify corrplexity in futility margin Don't check that staticEval == eval when applying the corrplexity-based adjustment in futility pruning. Passed Simplification STC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 121760 W: 31640 L: 31512 D: 58608 Ptnml(0-2): 349, 14400, 31289, 14458, 384 https://tests.stockfishchess.org/tests/view/6780c4109168c8bf30927777 Passed Simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 134772 W: 34245 L: 34140 D: 66387 Ptnml(0-2): 94, 14869, 37350, 14984, 89 https://tests.stockfishchess.org/tests/view/6782d6ea6ddf09c0b4b6dd36 closes https://github.com/official-stockfish/Stockfish/pull/5776 Bench: 1487627 --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 7f064bfb..3776e84b 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -783,8 +783,7 @@ Value Search::Worker::search( // The depth condition is important for mate finding. if (!ss->ttPv && depth < 14 && eval - futility_margin(depth, cutNode && !ss->ttHit, improving, opponentWorsening) - - (ss - 1)->statScore / 310 - + (ss->staticEval == eval) * (40 - std::abs(correctionValue) / 131072) + - (ss - 1)->statScore / 310 + 40 - std::abs(correctionValue) / 131072 >= beta && eval >= beta && (!ttData.move || ttCapture) && !is_loss(beta) && !is_win(eval)) return beta + (eval - beta) / 3;