depth condition for node tm | bench 6813804

This commit is contained in:
rektdie committed 2025-09-14 12:03:30 +02:00
1 parent c108bfa786
commit 861a354215
1 file changed
+5 -1
+5 -1
View File
@@ -747,9 +747,13 @@ static SearchResults ID(Board &board, SearchParams params, SearchContext* ctx) {
ctx->seldepth = 0; ctx->seldepth = 0;
SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false); SearchResults currentResults = PVS<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
elapsed = ctx->sw.GetElapsedMS(); elapsed = ctx->sw.GetElapsedMS();
if (depth > 6) {
nodeScaling = ScaleTime(ctx, currentResults.bestMove);
}
if (aw.alpha != -inf && currentResults.score <= aw.alpha) { if (aw.alpha != -inf && currentResults.score <= aw.alpha) {
aw.WidenDown(); aw.WidenDown();
depth--; depth--;