mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 01:27:16 +08:00
Retire RootMove::nodes
Was used for time management but is no more used today. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -67,7 +67,6 @@ namespace {
|
||||
|
||||
RootMove(){}
|
||||
RootMove(Move m) {
|
||||
nodes = 0;
|
||||
score = prevScore = -VALUE_INFINITE;
|
||||
pv.push_back(m);
|
||||
pv.push_back(MOVE_NONE);
|
||||
@@ -79,7 +78,6 @@ namespace {
|
||||
void extract_pv_from_tt(Position& pos);
|
||||
void insert_pv_in_tt(Position& pos);
|
||||
|
||||
int64_t nodes;
|
||||
Value score;
|
||||
Value prevScore;
|
||||
std::vector<Move> pv;
|
||||
@@ -594,7 +592,6 @@ namespace {
|
||||
assert(pos.thread() >= 0 && pos.thread() < Threads.size());
|
||||
|
||||
Move movesSearched[MAX_MOVES];
|
||||
int64_t nodes;
|
||||
StateInfo st;
|
||||
const TTEntry *tte;
|
||||
Key posKey;
|
||||
@@ -901,7 +898,6 @@ split_point_start: // At split points actual search starts from here
|
||||
if (RootNode)
|
||||
{
|
||||
Signals.firstRootMove = (moveCount == 1);
|
||||
nodes = pos.nodes_searched();
|
||||
|
||||
if (pos.thread() == 0 && elapsed_time() > 2000)
|
||||
cout << "info depth " << depth / ONE_PLY
|
||||
@@ -1068,7 +1064,6 @@ split_point_start: // At split points actual search starts from here
|
||||
if (RootNode && !Signals.stop)
|
||||
{
|
||||
RootMove& rm = *find(RootMoves.begin(), RootMoves.end(), move);
|
||||
rm.nodes += pos.nodes_searched() - nodes;
|
||||
|
||||
// PV move or new best move ?
|
||||
if (isPvMove || value > alpha)
|
||||
|
||||
Reference in New Issue
Block a user