mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Async UCI options actions
Introduce 'on change' actions that are triggered as soon as an UCI option is changed by the GUI. This allows to set hash size before to start the game, helpful especially on very fast TC and big TT size. As a side effect remove the 'button' type option, that now is managed as a 'check' type. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -278,14 +278,6 @@ void Search::think() {
|
||||
|
||||
// Read UCI options: GUI could change UCI parameters during the game
|
||||
read_evaluation_uci_options(pos.side_to_move());
|
||||
Threads.read_uci_options();
|
||||
|
||||
TT.set_size(Options["Hash"]);
|
||||
if (Options["Clear Hash"])
|
||||
{
|
||||
Options["Clear Hash"] = false;
|
||||
TT.clear();
|
||||
}
|
||||
|
||||
UCIMultiPV = Options["MultiPV"];
|
||||
SkillLevel = Options["Skill Level"];
|
||||
|
||||
Reference in New Issue
Block a user