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:
@@ -106,7 +106,7 @@ void uci_loop() {
|
||||
|
||||
else if (token == "eval")
|
||||
{
|
||||
read_evaluation_uci_options(pos.side_to_move());
|
||||
EvalRootColor = pos.side_to_move();
|
||||
cout << trace_evaluate(pos) << endl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user