mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Wait at least until iteration 3 before to stop the search
It was 2 before. Merged from Glaurung current development snapshot. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -2412,7 +2412,7 @@ namespace {
|
|||||||
|| ( !FailHigh && !fail_high_ply_1() && !Problem
|
|| ( !FailHigh && !fail_high_ply_1() && !Problem
|
||||||
&& t > 6*(MaxSearchTime + ExtraSearchTime));
|
&& t > 6*(MaxSearchTime + ExtraSearchTime));
|
||||||
|
|
||||||
if ( (Iteration >= 2 && (!InfiniteSearch && overTime))
|
if ( (Iteration >= 3 && (!InfiniteSearch && overTime))
|
||||||
|| (ExactMaxTime && t >= ExactMaxTime)
|
|| (ExactMaxTime && t >= ExactMaxTime)
|
||||||
|| (Iteration >= 3 && MaxNodes && nodes_searched() >= MaxNodes))
|
|| (Iteration >= 3 && MaxNodes && nodes_searched() >= MaxNodes))
|
||||||
AbortSearch = true;
|
AbortSearch = true;
|
||||||
@@ -2426,7 +2426,7 @@ namespace {
|
|||||||
void ponderhit() {
|
void ponderhit() {
|
||||||
int t = current_search_time();
|
int t = current_search_time();
|
||||||
PonderSearch = false;
|
PonderSearch = false;
|
||||||
if(Iteration >= 2 &&
|
if(Iteration >= 3 &&
|
||||||
(!InfiniteSearch && (StopOnPonderhit ||
|
(!InfiniteSearch && (StopOnPonderhit ||
|
||||||
t > AbsoluteMaxSearchTime ||
|
t > AbsoluteMaxSearchTime ||
|
||||||
(RootMoveNumber == 1 &&
|
(RootMoveNumber == 1 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user