From 944bee71177601649150f44f4d2eee91418594ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Oster?= Date: Sun, 10 May 2026 11:47:50 +0200 Subject: [PATCH] Fix calculation of searched nodes (effort) by moving it back to its original place right before making the move. See the original patch https://github.com/official-stockfish/Stockfish/commit/bf2c7306ac7f83200ba4d894867e3c0c78c0802c Only functional with active time-management. closes https://github.com/official-stockfish/Stockfish/pull/6810 No functional change --- src/search.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index 07c0c41ea..9e075a21c 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1217,12 +1217,13 @@ moves_loop: // When in check, search starts here extension = -2; } + uint64_t nodeCount = rootNode ? uint64_t(nodes) : 0; + // Step 16. Make the move do_move(pos, move, st, givesCheck, ss); // Add extension to new depth newDepth += extension; - uint64_t nodeCount = rootNode ? uint64_t(nodes) : 0; // Decrease reduction for PvNodes (*Scaler) if (ss->ttPv)