From: Joona Kiiski Date: Fri, 5 Feb 2010 12:17:38 +0000 (+0200) Subject: Simplify time management X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d8e5b8c133be7e49b47236a83f82e0cd6290c20c Simplify time management noProblemFound condition is never true. This was verified by running 800 games 1+0 match in 1 CPU computer. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index ff791b8e..6c28b52f 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2771,15 +2771,8 @@ namespace { && !FailLow && t > MaxSearchTime + ExtraSearchTime; - bool noProblemFound = !FailHigh - && !FailLow - && !fail_high_ply_1() - && !Problem - && t > 6 * (MaxSearchTime + ExtraSearchTime); - bool noMoreTime = t > AbsoluteMaxSearchTime - || stillAtFirstMove //FIXME: We are not checking any problem flags, BUG? - || noProblemFound; + || stillAtFirstMove; if ( (Iteration >= 3 && UseTimeManagement && noMoreTime) || (ExactMaxTime && t >= ExactMaxTime) @@ -2801,15 +2794,8 @@ namespace { && !FailLow && t > MaxSearchTime + ExtraSearchTime; - bool noProblemFound = !FailHigh - && !FailLow - && !fail_high_ply_1() - && !Problem - && t > 6 * (MaxSearchTime + ExtraSearchTime); - bool noMoreTime = t > AbsoluteMaxSearchTime - || stillAtFirstMove - || noProblemFound; + || stillAtFirstMove; if (Iteration >= 3 && UseTimeManagement && (noMoreTime || StopOnPonderhit)) AbortSearch = true;