From d2586bec7de474005e2b5e627ce82e8e44960350 Mon Sep 17 00:00:00 2001 From: rektdie Date: Mon, 8 Sep 2025 18:01:27 +0200 Subject: [PATCH] resetting seldepth between ID iterations | bench 6293651 --- source/search.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/search.cpp b/source/search.cpp index f0124de..574e853 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -723,6 +723,7 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) { for (int depth = 1; depth <= toDepth; depth++) { ctx->timeToSearch = std::max((fullTime / movesToGo) + (inc / 2), 4); int softTime = ctx->timeToSearch * 0.65; + ctx->seldepth = 0; SearchResults currentResults = PVS(board, depth, aw.alpha, aw.beta, 0, ctx, false); elapsed = ctx->sw.GetElapsedMS();