Skip to content

Commit

Permalink
Change the frequency of progress report in searchpos.h
Browse files Browse the repository at this point in the history
  • Loading branch information
benini committed Dec 21, 2024
1 parent 44ddad5 commit ae87816
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/searchpos.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,9 @@ class SearchPos {
ply = base.getGame(ie).search<TOMOVE>(board_, nPieces_);
if (ply != 0)
filter.set(i, (ply > 255) ? 255 : ply);

if ((progress++ % 256) == 0 && !prg.report(i, n))
return false;
}
if (progress++ % 512 == 0 && !prg.report(i, n))
return false;
}
return true;
}
Expand Down

0 comments on commit ae87816

Please sign in to comment.