Skip to content

Commit

Permalink
chore: increase mem limit more
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed May 30, 2024
1 parent a2f13d9 commit 2c72826
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/commands/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Node>());

loop {
let node = tree.playout();
if tree.playouts() & 4095 == 0 {
Expand All @@ -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
);
}
Expand All @@ -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::<Node>() {
//println!("nodes {}", tree.nodes());
if tree.nodes() > 2_000_000_000 / mem::size_of::<Node>() {
break;
}
}
Expand Down

0 comments on commit 2c72826

Please sign in to comment.