You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to prevent lagging. E.g., one could call a function many times, where this function sends an expensive command to Stockfish. The function calls would be relatively quick, but they would finish before Stockfish can process all the commands. This will make subsequent commands lag.
So calling _is_ready() before sending a command ensures Stockfish doesn't get bogged down working through multiple commands. And _is_ready() itself is quite fast (hundredths of a millisecond on my computer). _is_ready() can also be sent after certain expensive commands, assuming that they don't output to stdout (since _is_ready will clear this).
The text was updated successfully, but these errors were encountered:
johndoknjas
changed the title
Call the ._is_ready() function before sending any command
Call the ._is_ready() function before (or after?) sending any command
Aug 26, 2024
johndoknjas
changed the title
Call the ._is_ready() function before (or after?) sending any command
Call the _is_ready() function before (or after?) sending any command
Aug 26, 2024
johndoknjas
changed the title
Call the _is_ready() function before (or after?) sending any command
Call the _is_ready() function before sending any command
Aug 27, 2024
In order to prevent lagging. E.g., one could call a function many times, where this function sends an expensive command to Stockfish. The function calls would be relatively quick, but they would finish before Stockfish can process all the commands. This will make subsequent commands lag.
So calling _is_ready() before sending a command ensures Stockfish doesn't get bogged down working through multiple commands. And _is_ready() itself is quite fast (hundredths of a millisecond on my computer).
_is_ready()
can also be sent after certain expensive commands, assuming that they don't output to stdout (since_is_ready
will clear this).The text was updated successfully, but these errors were encountered: