mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Fix early stop condition
While editing original Uri's messy patch I have incorrectly simplified the logic condition. Here is the correct original version, as it was tested. bench: 8502826
This commit is contained in:
@@ -1612,8 +1612,9 @@ void check_time() {
|
||||
Time::point elapsed = Time::now() - SearchTime;
|
||||
bool stillAtFirstMove = Signals.firstRootMove
|
||||
&& !Signals.failedLowAtRoot
|
||||
&& elapsed > (TimeMgr.available_time() * 62) / 100
|
||||
&& elapsed > IterationTime * 1.4;
|
||||
&& ( elapsed > TimeMgr.available_time()
|
||||
|| ( elapsed > (TimeMgr.available_time() * 62) / 100
|
||||
&& elapsed > IterationTime * 1.4));
|
||||
|
||||
bool noMoreTime = elapsed > TimeMgr.maximum_time() - 2 * TimerThread::Resolution
|
||||
|| stillAtFirstMove;
|
||||
|
||||
Reference in New Issue
Block a user