Init threat offsets at compile time

Init threat offsets at compile time. Avoid another global init function call.

Passed STC Non-Regression:
https://tests.stockfishchess.org/tests/view/694971a83c8768ca4507275c
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 43296 W: 11284 L: 11077 D: 20935
Ptnml(0-2): 152, 4611, 11924, 4800, 161

closes https://github.com/official-stockfish/Stockfish/pull/6487

No functional change
This commit is contained in:
Disservin
2025-12-23 21:42:45 +01:00
parent 4d4c6ebd02
commit 73b3b18595
6 changed files with 293 additions and 173 deletions
-2
View File
@@ -21,7 +21,6 @@
#include "bitboard.h"
#include "misc.h"
#include "nnue/features/full_threats.h"
#include "position.h"
#include "tune.h"
#include "uci.h"
@@ -33,7 +32,6 @@ int main(int argc, char* argv[]) {
Bitboards::init();
Position::init();
Eval::NNUE::Features::init_threat_offsets();
auto uci = std::make_unique<UCIEngine>(argc, argv);