X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=edc4a71a0766c79f14b092a1367cd3759a6b907a;hb=0ac44b40c9973a9033e09631bfbaf3e888af208e;hp=693bea940548f31d975db84c428d2b8273819c8a;hpb=221f41c2dffd100e8069bde7785022f4366f1e70;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 693bea94..edc4a71a 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -235,7 +235,7 @@ namespace { const Value EasyMoveMargin = Value(0x200); // Last seconds noise filtering (LSN) - const bool UseLSNFiltering = true; + const bool UseLSNFiltering = false; const int LSNTime = 100; // In milliseconds const Value LSNValue = value_from_centipawns(200); bool loseOnTime = false; @@ -356,7 +356,7 @@ void init_search() { // Init futility margins array for (d = 0; d < 16; d++) for (mc = 0; mc < 64; mc++) - FutilityMarginsMatrix[d][mc] = 112 * int(log(double(d * d) / 2) / log(2.0) + 1) - 8 * mc + 45; + FutilityMarginsMatrix[d][mc] = 112 * int(log(double(d * d) / 2) / log(2.0) + 1.001) - 8 * mc + 45; // Init futility move count array for (d = 0; d < 32; d++) @@ -1237,7 +1237,7 @@ namespace { // Step 9. Internal iterative deepening if ( depth >= IIDDepth[PvNode] - && (ttMove == MOVE_NONE || (PvNode && tte->depth() <= depth - 4 * OnePly)) + && ttMove == MOVE_NONE && (PvNode || (!isCheck && ss->eval >= beta - IIDMargin))) { Depth d = (PvNode ? depth - 2 * OnePly : depth / 2);