]> git.sesse.net Git - stockfish/commitdiff
Simplify reduction on rootNode when bestMoveChanges is high
authorbmc4 <bmc4@cin.ufpe.br>
Mon, 29 Nov 2021 12:30:07 +0000 (09:30 -0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 1 Dec 2021 17:10:51 +0000 (18:10 +0100)
The reduction introduced in #3736 also consider on rootNode, so we don't have to reduce again.

STC:
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 28736 W: 7494 L: 7329 D: 13913
Ptnml(0-2): 95, 3247, 7503, 3444, 79
https://tests.stockfishchess.org/tests/view/61a3abe01b7fdf52228e74d8

LTC:
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 47816 W: 12434 L: 12308 D: 23074
Ptnml(0-2): 37, 4972, 13755, 5116, 28
https://tests.stockfishchess.org/tests/view/61a3c3e39f0c43dae1c71d71

closes https://github.com/official-stockfish/Stockfish/pull/3817

bench: 6331638

src/search.cpp

index c4ed73372df2040ffee3bc7093e61e9301011ecd..70dc4b2100cba60644fbe7ff58f76ec84b3c67bf 100644 (file)
@@ -1185,8 +1185,8 @@ moves_loop: // When in check, search starts here
               && !likelyFailLow)
               r -= 2;
 
-          // Increase reduction at root and non-PV nodes when the best move does not change frequently
-          if (   (rootNode || !PvNode)
+          // Increase reduction at non-PV nodes when the best move does not change frequently
+          if (  !PvNode
               && thisThread->bestMoveChanges <= 2)
               r++;