From 435ba3dbb5ceb081592233d9f4b71e51c492dc22 Mon Sep 17 00:00:00 2001 From: Viren6 <94880762+Viren6@users.noreply.github.com> Date: Sun, 19 Jan 2025 17:18:23 +0000 Subject: [PATCH] Revert "Moving up the if position is or has been on the PV reduction" Passed VVLTC 1: LLR: 2.94 (-2.94,2.94) <0.00,2.00> Total: 68362 W: 17830 L: 17523 D: 33009 Ptnml(0-2): 9, 6253, 21347, 6566, 6 https://tests.stockfishchess.org/tests/view/6790271cfc8c306ba6cea2c1 Passed VVLTC 2: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 113256 W: 29158 L: 28721 D: 55377 Ptnml(0-2): 13, 10521, 35122, 10960, 12 https://tests.stockfishchess.org/tests/view/678d3e47d63764e34db491a3 closes https://github.com/official-stockfish/Stockfish/pull/5815 bench 1943998 --- src/search.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index f2363162..990cbae3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -982,10 +982,6 @@ moves_loop: // When in check, search starts here Depth r = reduction(improving, depth, moveCount, delta); - // Decrease reduction if position is or has been on the PV (*Scaler) - if (ss->ttPv) - r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960; - // Step 14. Pruning at shallow depth. // Depth conditions are important for mate finding. if (!rootNode && pos.non_pawn_material(us) && !is_loss(bestValue)) @@ -1146,6 +1142,9 @@ moves_loop: // When in check, search starts here uint64_t nodeCount = rootNode ? uint64_t(nodes) : 0; // Decrease reduction for PvNodes (*Scaler) + if (ss->ttPv) + r -= 1037 + (ttData.value > alpha) * 965 + (ttData.depth >= depth) * 960; + if (PvNode) r -= 1018;