resetting seldepth between ID iterations | bench 6293651

This commit is contained in:
rektdie committed 2025-09-08 18:01:27 +02:00
1 parent f5f51496b3
commit d2586bec7d
1 file changed
+1
+1
View File
@@ -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<true, mode>(board, depth, aw.alpha, aw.beta, 0, ctx, false);
elapsed = ctx->sw.GetElapsedMS();