mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
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 <mcostalba@gmail.com>
This commit is contained in:
parent
f80c50bcdd
commit
aa392c366e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue