]> git.sesse.net Git - stockfish/commitdiff
Simplify the thread term for reduction formula
authorIIvec <ivan.ivec@gmail.com>
Thu, 20 May 2021 18:02:32 +0000 (20:02 +0200)
committerStéphane Nicolet <cassio@free.fr>
Wed, 26 May 2021 15:25:05 +0000 (17:25 +0200)
Dependance on Threads.size() was removed Search::init() for the Reductions[] initialization.

STC:
LLR: 2.94 (-2.94,2.94) <-2.50,0.50>
Total: 17376 W: 1024 L: 929 D: 15423
Ptnml(0-2): 24, 781, 6989, 864, 30
https://tests.stockfishchess.org/tests/view/60ac110812066fd2997957dc

LTC:
LLR: 2.95 (-2.94,2.94) <-2.50,0.50>
Total: 145552 W: 3656 L: 3673 D: 138223
Ptnml(0-2): 37, 3351, 66014, 3340, 34
https://tests.stockfishchess.org/tests/view/60ac267412066fd299795825

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

Bench 3864295

src/search.cpp

index 6cb42cc3a38ac3da6cdc64bfab31b9237dda383b..c69b240836e68e129c7bfc8f4542214eaa8d4af5 100644 (file)
@@ -152,7 +152,7 @@ namespace {
 void Search::init() {
 
   for (int i = 1; i < MAX_MOVES; ++i)
-      Reductions[i] = int((21.3 + 2 * std::log(Threads.size())) * std::log(i + 0.25 * std::log(i)));
+      Reductions[i] = int(21.3 * std::log(i + 0.25 * std::log(i)));
 }