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:
Marco Costalba
2012-03-05 19:24:59 +01:00
parent 2ef5b4066e
commit d8e56cbe54
7 changed files with 62 additions and 66 deletions

View File

@@ -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;
}