mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +08:00
Revert to old time management (#1351)
As many users reported some problems with new time management, and recent tests on longer time controls http://tests.stockfishchess.org/tests/view/5a460e160ebc590ccbb8c35d http://tests.stockfishchess.org/tests/view/5a462f4d0ebc590ccbb8c37a are even little in favor of old time management, this revert seems as a logical step. STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 14060 W: 2562 L: 2430 D: 9068 LTC: LLR: 3.44 (-2.94,2.94) [-3.00,1.00] Total: 31611 W: 3958 L: 3827 D: 23826 bench: 5365777 (same as master)
This commit is contained in:
@@ -1497,7 +1497,7 @@ moves_loop: // When in check search starts from here
|
||||
if (Threads.ponder)
|
||||
return;
|
||||
|
||||
if ( (Limits.use_time_management() && elapsed > Time.maximum())
|
||||
if ( (Limits.use_time_management() && elapsed > Time.maximum() - 10)
|
||||
|| (Limits.movetime && elapsed >= Limits.movetime)
|
||||
|| (Limits.nodes && Threads.nodes_searched() >= (uint64_t)Limits.nodes))
|
||||
Threads.stop = true;
|
||||
|
||||
Reference in New Issue
Block a user