]> git.sesse.net Git - stockfish/commitdiff
Increase reduction at root
authorSFisGOD <jonathandumale@gmail.com>
Tue, 10 Nov 2020 17:28:43 +0000 (18:28 +0100)
committerStéphane Nicolet <cassio@free.fr>
Thu, 12 Nov 2020 11:49:03 +0000 (12:49 +0100)
when the best move does not change frequently

STC:
LLR: 2.94 (-2.94,2.94) {-0.25,1.25}
Total: 51320 W: 5159 L: 4956 D: 41205
Ptnml(0-2): 215, 3897, 17242, 4082, 224
https://tests.stockfishchess.org/tests/view/5faa072367cbf42301d6a767

LTC:
LLR: 2.98 (-2.94,2.94) {0.25,1.25}
Total: 15952 W: 762 L: 642 D: 14548
Ptnml(0-2): 8, 561, 6725, 667, 15
https://tests.stockfishchess.org/tests/view/5faa4c3567cbf42301d6a794

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

Bench: 3954692

AUTHORS
src/search.cpp

diff --git a/AUTHORS b/AUTHORS
index f0356090efd1ef61c27f765fa165e5ffbe5a4335..f30be4de107d12794d851ca97b0dc563d3240d2c 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -86,7 +86,7 @@ Jekaa
 Jerry Donald Watson (jerrydonaldwatson)
 jjoshua2
 Jonathan Calovski (Mysseno)
 Jerry Donald Watson (jerrydonaldwatson)
 jjoshua2
 Jonathan Calovski (Mysseno)
-Jonathan Dumale (SFisGOD)
+Jonathan Buladas Dumale (SFisGOD)
 Joost VandeVondele (vondele)
 Jörg Oster (joergoster)
 Joseph Ellis (jhellis3)
 Joost VandeVondele (vondele)
 Jörg Oster (joergoster)
 Joseph Ellis (jhellis3)
index 56b56733fb2771aa998030887370622a408ff786..66ef5043d28e2280d286509cf2aaee482677e190 100644 (file)
@@ -1161,7 +1161,7 @@ moves_loop: // When in check, search starts from here
           if (thisThread->ttHitAverage > 509 * TtHitAverageResolution * TtHitAverageWindow / 1024)
               r--;
 
           if (thisThread->ttHitAverage > 509 * TtHitAverageResolution * TtHitAverageWindow / 1024)
               r--;
 
-          // Reduction if other threads are searching this position
+          // Increase reduction if other threads are searching this position
           if (th.marked())
               r++;
 
           if (th.marked())
               r++;
 
@@ -1169,7 +1169,8 @@ moves_loop: // When in check, search starts from here
           if (ss->ttPv)
               r -= 2;
 
           if (ss->ttPv)
               r -= 2;
 
-          if (!PvNode && depth > 10 && thisThread->bestMoveChanges <= 2)
+          // Increase reduction at root and non-PV nodes when the best move does not change frequently
+          if ((rootNode || !PvNode) && depth > 10 && thisThread->bestMoveChanges <= 2)
               r++;
 
           if (moveCountPruning && !formerPv)
               r++;
 
           if (moveCountPruning && !formerPv)