From 960b32e6bda18e51e1bec2681c7d732492100f99 Mon Sep 17 00:00:00 2001 From: rektdie Date: Thu, 27 Mar 2025 19:53:49 +0100 Subject: [PATCH] checking for time only every 1024 nodes | bench 684523 --- source/search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/search.cpp b/source/search.cpp index b542487..8324a48 100644 --- a/source/search.cpp +++ b/source/search.cpp @@ -117,7 +117,7 @@ static int GetReductions(Board &board, Move &move, int depth, int moveSeen, int } static SearchResults Quiescence(Board board, int alpha, int beta, int ply) { - if (!benchStarted) { + if (!benchStarted && nodes % 1024 == 0) { if (sw.GetElapsedMS() >= timeToSearch) { StopSearch(); return 0; @@ -166,7 +166,7 @@ static SearchResults Quiescence(Board board, int alpha, int beta, int ply) { template SearchResults PVS(Board board, int depth, int alpha, int beta, int ply) { - if (!benchStarted) { + if (!benchStarted && nodes % 1024 == 0) { if (sw.GetElapsedMS() >= timeToSearch) { StopSearch(); return 0;