From: Marco Costalba Date: Mon, 5 Nov 2012 06:28:42 +0000 (+0100) Subject: Temporary revert previous patch X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=a5b1f4774f44e29ad32a93b524ad43fa2d790e1a Temporary revert previous patch Performs well at very short TC of 40/4+0.05 (courtesy of Jean-Francois): Wins: 2503 Losses: 2146 Draws: 5581 Total: 10230 +12 ELO But is poor at longer TC of 20"+0.05 Wins: 321 Losses: 373 Draws: 1141 Total: 1808 -10 ELO The patch was clearly a tradoff between speed and accuracy and the most interesting part of it are test results that can be commented as follows: - A short TC is very sensible to any speed increase - A longer TC is more sensible to accuracy and less to speed So a patch that does not change speed is suitable to be tested at short TC, while a speed/accuracy compromise patch is IMO better to be tested at longer TC to verify loss of accuracy can be tolerated. In this case the revert is only temporary. We will come back again once we will be able to preserve the evaluation margin. bench: 5809010 --- diff --git a/src/search.cpp b/src/search.cpp index 075aa9b4..253311ae 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1154,11 +1154,6 @@ split_point_start: // At split points actual search starts from here if (ss->staticEval == VALUE_NONE || ss->evalMargin == VALUE_NONE) // Due to a race ss->staticEval = bestValue = evaluate(pos, ss->evalMargin); } - else if ((ss-1)->currentMove == MOVE_NULL) - { - ss->staticEval = bestValue = -(ss-1)->staticEval; - ss->evalMargin = VALUE_ZERO; // Hack, we really don't know the value - } else ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);