Skip to content

Commit

Permalink
Reduce refresh cost by 5/8 after PR official-stockfish#5125 No functi…
Browse files Browse the repository at this point in the history
…onal change

bench: 1823302
  • Loading branch information
mstembera committed Apr 2, 2024
1 parent 855921a commit 173c073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nnue/features/half_ka_v2_hm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ template void HalfKAv2_hm::append_changed_indices<BLACK>(Square ksq,

int HalfKAv2_hm::update_cost(const StateInfo* st) { return st->dirtyPiece.dirty_num; }

int HalfKAv2_hm::refresh_cost(const Position& pos) { return pos.count<ALL_PIECES>() * 3 / 4; }
int HalfKAv2_hm::refresh_cost(const Position& pos) { return pos.count<ALL_PIECES>() * 5 / 8; }

bool HalfKAv2_hm::requires_refresh(const StateInfo* st, Color perspective) {
return st->dirtyPiece.piece[0] == make_piece(perspective, KING);
Expand Down

0 comments on commit 173c073

Please sign in to comment.