mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +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;
|
Time::point elapsed = Time::now() - SearchTime;
|
||||||
bool stillAtFirstMove = Signals.firstRootMove
|
bool stillAtFirstMove = Signals.firstRootMove
|
||||||
&& !Signals.failedLowAtRoot
|
&& !Signals.failedLowAtRoot
|
||||||
&& elapsed > (TimeMgr.available_time() * 62) / 100
|
&& ( elapsed > TimeMgr.available_time()
|
||||||
&& elapsed > IterationTime * 1.4;
|
|| ( elapsed > (TimeMgr.available_time() * 62) / 100
|
||||||
|
&& elapsed > IterationTime * 1.4));
|
||||||
|
|
||||||
bool noMoreTime = elapsed > TimeMgr.maximum_time() - 2 * TimerThread::Resolution
|
bool noMoreTime = elapsed > TimeMgr.maximum_time() - 2 * TimerThread::Resolution
|
||||||
|| stillAtFirstMove;
|
|| stillAtFirstMove;
|
||||||
|
|||||||
Reference in New Issue
Block a user