]> git.sesse.net Git - stockfish/commitdiff
Remove an unneeded randomization of evals.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 31 Jul 2022 14:55:07 +0000 (16:55 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Fri, 12 Aug 2022 12:30:33 +0000 (14:30 +0200)
most of the effect comes from the randomization of 3-folds.

passed STC:
https://tests.stockfishchess.org/tests/view/62e697e97e84186e5d19af6f
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 572976 W: 153168 L: 153539 D: 266269
Ptnml(0-2): 2505, 64783, 152364, 64250, 2586

passed LTC:
https://tests.stockfishchess.org/tests/view/62ee5977523c86dcd6957154
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 704808 W: 191212 L: 191680 D: 321916
Ptnml(0-2): 1340, 70579, 208972, 70235, 1278

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

Bench: 5868987

src/search.cpp

index 565fba0f89f7ece8ffccaf1aef5ea00beff5b3b6..4d56d14d1ec6f7558e7e0aefc57b2796208a407f 100644 (file)
@@ -741,10 +741,6 @@ namespace {
         else // Fall back to (semi)classical complexity for TT hits, the NNUE complexity is lost
             complexity = abs(ss->staticEval - pos.psq_eg_stm());
 
-        // Randomize draw evaluation
-        if (eval == VALUE_DRAW)
-            eval = value_draw(thisThread);
-
         // ttValue can be used as a better position evaluation (~4 Elo)
         if (    ttValue != VALUE_NONE
             && (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER)))