From 3f919c40804f024737bcf4da85027a980db6eb23 Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Sat, 23 Jan 2021 11:11:26 -0500 Subject: no speed increase ... --- include/negamax_cnn1986.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/negamax_cnn1986.c b/include/negamax_cnn1986.c index b9d618d..6c834f1 100644 --- a/include/negamax_cnn1986.c +++ b/include/negamax_cnn1986.c @@ -194,7 +194,11 @@ float negamax_cnn1986(const uint8_t cur_depth, float alpha, float beta, const float colour) { - if (cnn1986_cache_seek(&alpha)) { + int sought = EXIT_FAILURE; + if (cur_depth < negamax_cnn1986_cache_threshold) { + sought = cnn1986_cache_seek(&alpha); + } + if (sought) { const uint8_t black = (ply & 1), material = (black) ? black_count : white_count, flat = material & 127, -- cgit v1.2.3