From 1c9e266ae25f7f6067806d139e5971ce8513d2f6 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 8 Sep 2026 11:55:28 +0100 Subject: ~25% speedup in selfplay due to: incremental zobrist hashing, smarter road checking, re-using the input computed for the NN --- include/pv.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/pv.h') diff --git a/include/pv.h b/include/pv.h index 4be7b24..06455fe 100644 --- a/include/pv.h +++ b/include/pv.h @@ -34,9 +34,11 @@ typedef struct pv_leaf_s { float terminal_value; } pv_leaf_t; -// Capture a horizon leaf (winner == 0xFF) or an exact terminal leaf -void pv_capture_leaf(pv_leaf_t *leaf, tak_state_p state, - enum WIN_TYPE winner); +// Capture a horizon leaf (winner == 0xFF) or an exact terminal leaf. +// +// The cell indices are taken from the encoding of the most recent +// nn_prepare_input. +void pv_capture_leaf(pv_leaf_t *leaf, tak_state_p state, enum WIN_TYPE winner); // Publish and retrieve the leaf selected by the full-depth root search void pv_publish_leaf(const pv_leaf_t *leaf); -- cgit v1.3.1