mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +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:
@@ -21,6 +21,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "bitboard.h"
|
||||
#include "ucioption.h"
|
||||
#include "position.h"
|
||||
#include "search.h"
|
||||
#include "thread.h"
|
||||
@@ -38,6 +39,7 @@ int main(int argc, char* argv[]) {
|
||||
kpk_bitbase_init();
|
||||
Search::init();
|
||||
Threads.init();
|
||||
TT.set_size(Options["Hash"]);
|
||||
|
||||
cout << engine_info() << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user