X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=ba13680cecbb1e4ade4f3a6264218a2d9679e740;hp=7c839dfc89f52ec62d33b0ae98ac8654688e4759;hb=34f67c57223d73ad40d583ccc033c75eb0df2453;hpb=2deb08a52946379d4cebb1082e5d740d1d027122 diff --git a/src/search.cpp b/src/search.cpp index 7c839dfc..ba13680c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -939,15 +939,11 @@ namespace { } } - // Step 11. Internal iterative deepening (~1 Elo) - if (depth >= 7 && !ttMove) - { - search(pos, ss, alpha, beta, depth - 7, cutNode); - - tte = TT.probe(posKey, ttHit); - ttValue = ttHit ? value_from_tt(tte->value(), ss->ply, pos.rule50_count()) : VALUE_NONE; - ttMove = ttHit ? tte->move() : MOVE_NONE; - } + // Step 11. If the position is not in TT, decrease depth by 2 + if ( PvNode + && depth >= 6 + && !ttMove) + depth -= 2; moves_loop: // When in check, search starts from here