mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Convert init of eval to async option
So to be done only once at startup and in the (unlikely) cases that a relevant UCI parameter is changed, instead of doing it at the beginning of each search. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
#include <string>
|
||||
|
||||
#include "bitboard.h"
|
||||
#include "ucioption.h"
|
||||
#include "evaluate.h"
|
||||
#include "position.h"
|
||||
#include "search.h"
|
||||
#include "thread.h"
|
||||
#include "ucioption.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -39,6 +40,7 @@ int main(int argc, char* argv[]) {
|
||||
kpk_bitbase_init();
|
||||
Search::init();
|
||||
Threads.init();
|
||||
eval_init();
|
||||
TT.set_size(Options["Hash"]);
|
||||
|
||||
cout << engine_info() << endl;
|
||||
|
||||
Reference in New Issue
Block a user