mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Improve I/O responsivness
Added checking of (stdin->_cnt > 0) from Greko. This seems to greatly improve responsivness when running under console. Now while running a 'stockfish bench', any key press immediately is detected by SF while before there was a delay of some fraction of a second. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
extern const std::string engine_name();
|
||||
extern int get_system_time();
|
||||
extern int cpu_count();
|
||||
extern int data_available();
|
||||
extern int input_available();
|
||||
extern void prefetch(char* addr);
|
||||
extern void prefetchPawn(Key, int);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user