X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fthread.cpp;h=19687aad7c439469aecd06b90dd1b26bddc4cbfd;hp=f7445f98ca4cbbb7b9bfab48acfff7251a5a96ed;hb=ca7d4e9ac7b5ca74be8aa807fbdf139b2a0860ab;hpb=d703d2b5e760edf4d34b6664f2d0552ffe424b12 diff --git a/src/thread.cpp b/src/thread.cpp index f7445f98..19687aad 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -148,6 +148,9 @@ void ThreadPool::set(size_t requested) { // Reallocate the hash with the new threadpool size TT.resize(Options["Hash"]); + + // Init thread number dependent search params. + Search::init(); } } @@ -201,7 +204,7 @@ void ThreadPool::start_thinking(Position& pos, StateListPtr& states, for (Thread* th : *this) { th->shuffleExts = th->nodes = th->tbHits = th->nmpMinPly = 0; - th->rootDepth = th->completedDepth = DEPTH_ZERO; + th->rootDepth = th->completedDepth = 0; th->rootMoves = rootMoves; th->rootPos.set(pos.fen(), pos.is_chess960(), &setupStates->back(), th); }