From: Marco Costalba Date: Fri, 6 Jan 2012 09:28:15 +0000 (+0100) Subject: Extra time management safety X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=aa392c366e6b52fa51b4be7965347d867a7f9804 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 --- 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)