mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Retire "Idle Threads Sleep" UCI option
After last Joona's patch there is no measurable difference between the option set or unset. Tested by Andreas Strangmüller with 16 threads on his Dual Opteron 6376. After 5000 games at 15+0.05 the result is: 1 Stockfish_14050822_T16_on : 3003 5000 (+849,=3396,-755), 50.9 % 2 Stockfish_14050822_T16_off : 2997 5000 (+755,=3396,-849), 49.1 % bench: 880215
This commit is contained in:
@@ -181,13 +181,12 @@ void MainThread::idle_loop() {
|
||||
|
||||
|
||||
// init() is called at startup to create and launch requested threads, that will
|
||||
// go immediately to sleep due to 'sleepWhileIdle' set to true. We cannot use
|
||||
// a c'tor because Threads is a static object and we need a fully initialized
|
||||
// engine at this point due to allocation of Endgames in Thread c'tor.
|
||||
// go immediately to sleep. We cannot use a c'tor because Threads is a static
|
||||
// object and we need a fully initialized engine at this point due to allocation
|
||||
// of Endgames in Thread c'tor.
|
||||
|
||||
void ThreadPool::init() {
|
||||
|
||||
sleepWhileIdle = true;
|
||||
timer = new_thread<TimerThread>();
|
||||
push_back(new_thread<MainThread>());
|
||||
read_uci_options();
|
||||
|
||||
Reference in New Issue
Block a user