]> git.sesse.net Git - stockfish/commitdiff
Improve comments
authorMichael Chaly <Vizvezdenec@gmail.com>
Mon, 12 Jun 2023 19:13:08 +0000 (22:13 +0300)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 12 Jun 2023 19:17:31 +0000 (21:17 +0200)
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

src/search.cpp

index b2c2344ac0aaff10a249bfb7f64a22fa0e648d6f..7ee6d43963f0fb3f2937da76233cb08b51d65f1d 100644 (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