Friday, November 08, 2013

[lljzituh] UCI buffer thread

When non-interactively interfacing with a UCI chess engine, have an intermediate thread accept messages from the engine as quickly as they are generated and place them on a queue.  The engine can constantly run at full speed.  The program main thread can dequeue at its leisure and process the messages.  The alternative is to stall the engine until output is consumed.

No comments :