From 2c72826e6fde1189ac8791030c7640de4d79b9e5 Mon Sep 17 00:00:00 2001 From: Rak Laptudirm Date: Fri, 31 May 2024 03:25:12 +0530 Subject: [PATCH] chore: increase mem limit more --- src/commands/go.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/go.rs b/src/commands/go.rs index 9000b26..bcf0fb8 100644 --- a/src/commands/go.rs +++ b/src/commands/go.rs @@ -129,6 +129,8 @@ pub fn search_std(position: ataxx::Position, tc: StandardTC) -> ataxx::Move { let mut last_info = start; let mut seldepth = 0; + println!("node size {}", mem::size_of::()); + loop { let node = tree.playout(); if tree.playouts() & 4095 == 0 { @@ -148,7 +150,7 @@ pub fn search_std(position: ataxx::Position, tc: StandardTC) -> ataxx::Move { new_depth, seldepth, node.q() * 100.0, - tree.playouts(), + tree.nodes(), tree.nodes() * 1000 / start.elapsed().as_millis().max(1) as usize ); } @@ -158,7 +160,8 @@ pub fn search_std(position: ataxx::Position, tc: StandardTC) -> ataxx::Move { break; } - if tree.playouts() > 5_000_000_000 / mem::size_of::() { + //println!("nodes {}", tree.nodes()); + if tree.nodes() > 2_000_000_000 / mem::size_of::() { break; } }