From aa392c366e6b52fa51b4be7965347d867a7f9804 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 6 Jan 2012 10:28:15 +0100 Subject: [PATCH] Extra time management safety Further increase safety against time losses. After this change (tested on LittleBlitzer and cutechess) I had no more time losses at 2" and 1"+0.02 TC both on Windows and Linux on more than 10000 games. Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 9d29d279..3ed8ced0 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1983,7 +1983,7 @@ void check_time() { && !Signals.failedLowAtRoot && e > TimeMgr.available_time(); - bool noMoreTime = e > TimeMgr.maximum_time() - TimerResolution + bool noMoreTime = e > TimeMgr.maximum_time() - 2 * TimerResolution || stillAtFirstMove; if ( (Limits.use_time_management() && noMoreTime) -- 2.39.2