mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00: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:
parent
8315620522
commit
7904a7d930
1 changed files with 5 additions and 4 deletions
|
@ -327,10 +327,11 @@ void MainThread::search() {
|
|||
|
||||
// Check if there are threads with a better score than main thread.
|
||||
Thread* bestThread = this;
|
||||
for (Thread* th : Threads)
|
||||
if ( th->completedDepth > bestThread->completedDepth
|
||||
&& th->rootMoves[0].score > bestThread->rootMoves[0].score)
|
||||
bestThread = th;
|
||||
if (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)
|
||||
bestThread = th;
|
||||
|
||||
// Send new PV when needed.
|
||||
// FIXME: Breaks multiPV, and skill levels
|
||||
|
|
Loading…
Add table
Reference in a new issue