From db6187999b6d8d06a781e0609c82768476f50304 Mon Sep 17 00:00:00 2001 From: Jean-loup Gailly Date: Wed, 13 Oct 2010 23:07:54 +0200 Subject: [PATCH] Make default pruning_threshold 10% of actual max_tree_size. Pointed out by pasky. --- uct/uct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uct/uct.c b/uct/uct.c index 2ac9040..b1a5a34 100644 --- a/uct/uct.c +++ b/uct/uct.c @@ -496,7 +496,7 @@ uct_state_init(char *arg, struct board *b) u->playout_amaf_nakade = false; u->amaf_prior = false; u->max_tree_size = 3072ULL * 1048576; - u->pruning_threshold = u->max_tree_size / 10; + u->pruning_threshold = 0; u->threads = 1; u->thread_model = TM_TREEVL; @@ -834,10 +834,10 @@ uct_state_init(char *arg, struct board *b) u->local_tree_playout = false; if (u->fast_alloc) { - if (u->pruning_threshold > u->max_tree_size / 2) - u->pruning_threshold = u->max_tree_size / 2; if (u->pruning_threshold < u->max_tree_size / 10) u->pruning_threshold = u->max_tree_size / 10; + if (u->pruning_threshold > u->max_tree_size / 2) + u->pruning_threshold = u->max_tree_size / 2; /* Limit pruning temp space to 20% of memory. Beyond this we discard * the nodes and recompute them at the next move if necessary. */ -- 2.11.4.GIT