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

Improve comments

Fix comments for IIR, also document non-linear scaling in extensions.
Also add explicitly the bench, to fix an issue after the last commit.

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

bench 2370027
This commit is contained in:
Michael Chaly 2023-06-12 22:13:08 +03:00 committed by Joost VandeVondele
parent 38e61663d8
commit ece90bca9c

View file

@ -822,7 +822,7 @@ namespace {
}
}
// Step 10. If the position doesn't a have ttMove, decrease depth by 2
// Step 10. If the position doesn't have a ttMove, decrease depth by 2
// (or by 4 if the TT entry for the current position was hit and the stored depth is greater than or equal to the current depth).
// Use qsearch if depth is equal or below zero (~9 Elo)
if ( PvNode
@ -1052,6 +1052,9 @@ moves_loop: // When in check, search starts here
// then that move is singular and should be extended. To verify this we do
// a reduced search on all the other moves but the ttMove and if the
// result is lower than ttValue minus a margin, then we will extend the ttMove.
// Depth margin and singularBeta margin are known for having non-linear scaling.
// Their values are optimized to time controls of 180+1.8 and longer
// so changing them requires tests at this type of time controls.
if ( !rootNode
&& depth >= 4 - (thisThread->completedDepth > 22) + 2 * (PvNode && tte->is_pv())
&& move == ttMove