From 70e51a5bc81bd15a73d2cb0be5008c7c02b1b0d5 Mon Sep 17 00:00:00 2001 From: Torsten Hellwig Date: Mon, 19 Sep 2022 18:22:56 +0200 Subject: [PATCH] Always output hashfull This removes the restriction that no hashfull information is printed within the first second of a search. On modern systems, a non-zero value is returned within 6 ms with default settings. passed STC: https://tests.stockfishchess.org/tests/view/63277b08b9c0caa5f4a798e4 LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 290096 W: 77505 L: 77561 D: 135030 Ptnml(0-2): 1008, 30713, 81592, 30797, 938 closes https://github.com/official-stockfish/Stockfish/pull/4174 No functional change --- src/search.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 0f524093..be0f3451 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1860,12 +1860,9 @@ string UCI::pv(const Position& pos, Depth depth, Value alpha, Value beta) { ss << (v >= beta ? " lowerbound" : v <= alpha ? " upperbound" : ""); ss << " nodes " << nodesSearched - << " nps " << nodesSearched * 1000 / elapsed; - - if (elapsed > 1000) // Earlier makes little sense - ss << " hashfull " << TT.hashfull(); - - ss << " tbhits " << tbHits + << " nps " << nodesSearched * 1000 / elapsed + << " hashfull " << TT.hashfull() + << " tbhits " << tbHits << " time " << elapsed << " pv";