mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Fix easy move bug in SMP mode
Fix a bug where we could stop the search after only 10% of time used due to a matching easy move but later switch to a different move that was never pre-screened as easy due to SMP thread select. STC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 27227 W: 4910 L: 4800 D: 17517 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 40368 W: 5826 L: 5733 D: 28809 Resolves #521
This commit is contained in:
@@ -328,7 +328,7 @@ void MainThread::search() {
|
||||
|
||||
// Check if there are threads with a better score than main thread.
|
||||
Thread* bestThread = this;
|
||||
if (Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled())
|
||||
if (!easyPlayed && Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled())
|
||||
for (Thread* th : Threads)
|
||||
if ( th->completedDepth > bestThread->completedDepth
|
||||
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
||||
|
||||
Reference in New Issue
Block a user