aboutsummaryrefslogtreecommitdiff
path: root/include/pv.h
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-09-08 11:55:28 +0100
committertslil <tslil@posteo.de>2026-09-09 21:45:17 +0100
commit1c9e266ae25f7f6067806d139e5971ce8513d2f6 (patch)
tree9b935954310a56ee7fdba07db5f03888fc5af7b0 /include/pv.h
parent7ef68374e8a58684b299b0f46f7ed850d5a87190 (diff)
~25% speedup in selfplay due to: incremental zobrist hashing, smarter road checking, re-using the input computed for the NN
Diffstat (limited to 'include/pv.h')
-rw-r--r--include/pv.h8
1 files changed, 5 insertions, 3 deletions
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);