1
0
Fork 0

Time-management fix in MultiPV mode.

Bench: 5714575
pull/3729/head
J. Oster 2021-10-05 12:02:25 +02:00
parent 135caee606
commit 8ffb7285e7
1 changed files with 4 additions and 2 deletions

View File

@ -1315,8 +1315,10 @@ moves_loop: // When in check, search starts here
rm.pv.push_back(*m);
// We record how often the best move has been changed in each
// iteration. This information is used for time management and LMR
if (moveCount > 1)
// iteration. This information is used for time management and LMR.
// Note: in MultiPV mode we must take care to only do this for the
// first PV line.
if (moveCount > 1 && !thisThread->pvIdx)
++thisThread->bestMoveChanges;
}
else