mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Retire broken SendSearchedNodes
Now that we can split at root it happens that SendSearchedNodes works only once at the end of the iteration, but this is useless becuase speed info is sent anyhow toghter with the pv line. So retire for now, waiting to find something SMP compatible. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
06e0d48794
commit
eabba1119f
1 changed files with 1 additions and 13 deletions
|
@ -175,7 +175,6 @@ namespace {
|
|||
|
||||
// Node counters, used only by thread[0] but try to keep in different cache
|
||||
// lines (64 bytes each) from the heavy multi-thread read accessed variables.
|
||||
bool SendSearchedNodes;
|
||||
int NodesSincePoll;
|
||||
int NodesBetweenPolls = 30000;
|
||||
|
||||
|
@ -367,7 +366,7 @@ bool think(Position& pos, const SearchLimits& limits, Move searchMoves[]) {
|
|||
static Book book;
|
||||
|
||||
// Initialize global search-related variables
|
||||
StopOnPonderhit = StopRequest = QuitRequest = AspirationFailLow = SendSearchedNodes = false;
|
||||
StopOnPonderhit = StopRequest = QuitRequest = AspirationFailLow = false;
|
||||
NodesSincePoll = 0;
|
||||
current_search_time(get_system_time());
|
||||
Limits = limits;
|
||||
|
@ -995,14 +994,6 @@ split_point_start: // At split points actual search starts from here
|
|||
// Save the current node count before the move is searched
|
||||
nodes = pos.nodes_searched();
|
||||
|
||||
// If it's time to send nodes info, do it here where we have the
|
||||
// correct accumulated node counts searched by each thread.
|
||||
if (!SpNode && SendSearchedNodes)
|
||||
{
|
||||
SendSearchedNodes = false;
|
||||
cout << "info" << speed_to_uci(pos.nodes_searched()) << endl;
|
||||
}
|
||||
|
||||
// For long searches send current move info to GUI
|
||||
if (pos.thread() == 0 && current_search_time() > 2000)
|
||||
cout << "info" << depth_to_uci(depth)
|
||||
|
@ -1951,9 +1942,6 @@ split_point_start: // At split points actual search starts from here
|
|||
|
||||
dbg_print_mean();
|
||||
dbg_print_hit_rate();
|
||||
|
||||
// Send info on searched nodes as soon as we return to root
|
||||
SendSearchedNodes = true;
|
||||
}
|
||||
|
||||
// Should we stop the search?
|
||||
|
|
Loading…
Add table
Reference in a new issue