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
This commit is contained in:
Jörg Oster
2026-05-10 11:47:50 +02:00
committed by Joost VandeVondele
parent bcd5b6ccb3
commit 944bee7117
+2 -1
View File
@@ -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)