mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Fix MultiPv and Skill in SMP.
7 threads, 5+0.1: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 55460 W: 9665 L: 9601 D: 36194 No functional change in normal playing mode
This commit is contained in:
@@ -327,6 +327,7 @@ void MainThread::search() {
|
|||||||
|
|
||||||
// Check if there are threads with a better score than main thread.
|
// Check if there are threads with a better score than main thread.
|
||||||
Thread* bestThread = this;
|
Thread* bestThread = this;
|
||||||
|
if (Options["MultiPV"] == 1 && !Skill(Options["Skill Level"]).enabled())
|
||||||
for (Thread* th : Threads)
|
for (Thread* th : Threads)
|
||||||
if ( th->completedDepth > bestThread->completedDepth
|
if ( th->completedDepth > bestThread->completedDepth
|
||||||
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
||||||
|
|||||||
Reference in New Issue
Block a user