From 861a3542155b659fae9920ecc47b04bb121953dd Mon Sep 17 00:00:00 2001 From: rektdie Date: Sun, 14 Sep 2025 12:03:30 +0200 Subject: [PATCH] depth condition for node tm | bench 6813804 --- source/search.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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--;