X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=1a516ff80b1e7a1c7a95d9d1ac9c9cfd8412e167;hp=7979fd5b549a349add8853c513ccd5da5388b745;hb=8ff2fcf299ac621779dc167ce750ba73aaae90a4;hpb=ed26d71354c3ab1a1419975430258b6e961787a7 diff --git a/src/search.cpp b/src/search.cpp index 7979fd5b..1a516ff8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -791,7 +791,7 @@ namespace { // Step 11. Internal iterative deepening (skipped when in check) if ( depth >= 6 * ONE_PLY && !ttMove - && (PvNode || ss->staticEval + 256 >= beta)) + && (PvNode || ss->staticEval + 128 >= beta)) { Depth d = 3 * depth / 4 - 2 * ONE_PLY; search(pos, ss, alpha, beta, d, cutNode, true); @@ -1495,7 +1495,7 @@ void MainThread::check_time() { static TimePoint lastInfoTime = now(); - int elapsed = Time.elapsed(); + TimePoint elapsed = Time.elapsed(); TimePoint tick = Limits.startTime + elapsed; if (tick - lastInfoTime >= 1000) @@ -1521,7 +1521,7 @@ void MainThread::check_time() { string UCI::pv(const Position& pos, Depth depth, Value alpha, Value beta) { std::stringstream ss; - int elapsed = Time.elapsed() + 1; + TimePoint elapsed = Time.elapsed() + 1; const RootMoves& rootMoves = pos.this_thread()->rootMoves; size_t PVIdx = pos.this_thread()->PVIdx; size_t multiPV = std::min((size_t)Options["MultiPV"], rootMoves.size());