diff --git a/source/search.cpp b/source/search.cpp index 87dbf54..43aaf1f 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -747,9 +747,13 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) { ctx->seldepth = 0; SearchResults currentResults = PVS(board, depth, aw.alpha, aw.beta, 0, ctx, false); - nodeScaling = ScaleTime(ctx, currentResults.bestMove); + elapsed = ctx->sw.GetElapsedMS(); + if (depth > 6) { + nodeScaling = ScaleTime(ctx, currentResults.bestMove); + } + if (aw.alpha != -inf && currentResults.score <= aw.alpha) { aw.WidenDown(); depth--;