From: ElbertoOne Date: Mon, 9 Jan 2017 09:26:50 +0000 (+0100) Subject: Simplified select best thread (#958) X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=d39ffbeea6ad54c90123a352d50b65c5bda1561b;ds=sidebyside Simplified select best thread (#958) Only select best thread if score is better and depth equal or larger. STC (7 threads): http://tests.stockfishchess.org/tests/view/586a4d090ebc5903140c64b2 LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 120297 W: 18652 L: 18682 D: 82963 LTC (7 threads): http://tests.stockfishchess.org/tests/view/586e31b30ebc5903140c663d LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 57187 W: 7035 L: 6959 D: 43193 bench: 4940355 --- diff --git a/src/search.cpp b/src/search.cpp index 4f4092ff..a9fc1c6d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -316,8 +316,7 @@ void MainThread::search() { Depth depthDiff = th->completedDepth - bestThread->completedDepth; Value scoreDiff = th->rootMoves[0].score - bestThread->rootMoves[0].score; - if ( (depthDiff > 0 && scoreDiff >= 0) - || (scoreDiff > 0 && depthDiff >= 0)) + if (scoreDiff > 0 && depthDiff >= 0) bestThread = th; } }