1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 16:53:09 +00:00

Simplifies bestMoveChanges from LMR

As bestMoveChanges is only reset on mainThread and it could change how other
threads search, a multi-threads test was made.

STC:
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 146776 W: 37934 L: 37941 D: 70901
Ptnml(0-2): 477, 15644, 41173, 15597, 497
https://tests.stockfishchess.org/tests/view/61a8f9f34ed77d629d4ea2d6

LTC:
LLR: 3.11 (-2.94,2.94) <-2.25,0.25>
Total: 114040 W: 29314 L: 29269 D: 55457
Ptnml(0-2): 50, 10584, 35722, 10599, 65
https://tests.stockfishchess.org/tests/view/61a9d4bf9e8855bba1a35c4f

(SMP, 8 threads) STC:
LLR: 2.95 (-2.94,2.94) <-2.25,0.25>
Total: 23888 W: 6308 L: 6143 D: 11437
Ptnml(0-2): 36, 2557, 6600, 2708, 43
https://tests.stockfishchess.org/tests/view/61ac27a756fcf33bce7d3677

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

bench: 4829419
This commit is contained in:
bmc4 2021-12-04 09:09:09 -03:00 committed by Stéphane Nicolet
parent 327060232a
commit a6a9d828ab

View file

@ -1187,9 +1187,8 @@ moves_loop: // When in check, search starts here
&& !likelyFailLow)
r -= 2;
// Increase reduction at non-PV nodes when the best move does not change frequently
if ( !PvNode
&& thisThread->bestMoveChanges <= 2)
// Increase reduction at non-PV nodes
if (!PvNode)
r++;
// Decrease reduction if opponent's move count is high (~1 Elo)