X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=7fcf4bcbf18f4b1ec335133d63b580c465c8a19b;hb=128e097d03819ace4e7cd23a54e893b499410382;hp=23629e6db9c0ebbdbf1d48a25081b485367ba76b;hpb=c1264e46d06fc096c7f43206ec32b3121bf30a1e;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index 23629e6d..7fcf4bcb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -367,6 +367,10 @@ namespace { if (Signals.stop) return; + // Give some update (without cluttering the UI) before to research + if (Time::now() - SearchTime > 3000) + sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl; + // In case of failing low/high increase aspiration window and // research, otherwise exit the loop. if (bestValue <= alpha) @@ -385,10 +389,6 @@ namespace { delta += delta / 2; assert(alpha >= -VALUE_INFINITE && beta <= VALUE_INFINITE); - - // Give some update (without cluttering the UI) before to research - if (Time::now() - SearchTime > 3000) - sync_cout << uci_pv(pos, depth, alpha, beta) << sync_endl; } // Sort the PV lines searched so far and update the GUI