Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
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 #4614

bench 2370027
  • Loading branch information
Vizvezdenec authored and vondele committed Jun 12, 2023
1 parent 38e6166 commit ece90bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/search.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -1052,6 +1052,9 @@ namespace {
// 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
Expand Down

0 comments on commit ece90bc

Please sign in to comment.