mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Call TT.new_search() earlier.
TT.new_search() was being called by mainThread in Thread::search(). However, mainThread is the last to start searching, and helper threads could reach a measured rootDepth 10 (on 64 cores) before mainThread increments the TT generation. Fixed by moving the call to MaintThread::search() before helper threads start searching. No functional change. Closes #1134
This commit is contained in:
parent
659990b43f
commit
ebc563059c
1 changed files with 1 additions and 1 deletions
|
@ -244,6 +244,7 @@ void MainThread::search() {
|
|||
|
||||
Color us = rootPos.side_to_move();
|
||||
Time.init(Limits, us, rootPos.game_ply());
|
||||
TT.new_search();
|
||||
|
||||
int contempt = Options["Contempt"] * PawnValueEg / 100; // From centipawns
|
||||
DrawValue[ us] = VALUE_DRAW - Value(contempt);
|
||||
|
@ -347,7 +348,6 @@ void Thread::search() {
|
|||
EasyMove.clear();
|
||||
mainThread->easyMovePlayed = mainThread->failedLow = false;
|
||||
mainThread->bestMoveChanges = 0;
|
||||
TT.new_search();
|
||||
}
|
||||
|
||||
size_t multiPV = Options["MultiPV"];
|
||||
|
|
Loading…
Add table
Reference in a new issue