mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +08:00
Collect more corrections to optimum/maximum
The only call site of Time.maximum() corrected by 10. Do this directly in remaining(). Ponder increased Time.optimum by 25% in init(). Idem. Delete unused includes. No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
4d511512d2
commit
daf0fe1f57
@@ -1491,7 +1491,7 @@ moves_loop: // When in check search starts from here
|
||||
if (Threads.ponder)
|
||||
return;
|
||||
|
||||
if ( (Limits.use_time_management() && elapsed > Time.maximum() - 10)
|
||||
if ( (Limits.use_time_management() && elapsed > Time.maximum())
|
||||
|| (Limits.movetime && elapsed >= Limits.movetime)
|
||||
|| (Limits.nodes && Threads.nodes_searched() >= (uint64_t)Limits.nodes))
|
||||
Threads.stop = true;
|
||||
|
||||
Reference in New Issue
Block a user