From: Marco Costalba Date: Mon, 8 Aug 2011 09:08:41 +0000 (+0100) Subject: Retire broken SendSearchedNodes X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=eabba1119f45f2ac8a3a6248bd1c1d9868d7af5c;ds=sidebyside 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 --- diff --git a/src/search.cpp b/src/search.cpp index 933b4030..4864b1cb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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?