This program shows one way to use DrawSprockets for real-time asynchronous updates to two monitors. It could be easily modified for more monitors. It does on two monitors what Michael Bach's SuperSimpleDrawSprockets does on one.
Drawing occurs independtly in the main loop.
Thanks are due to Dennis Pelli for his VideoToolbox code base and to Chris De Salvo for his excellent Sprocket Invaders sample program. This routine is no longer simple but is doing some quite interesting things. So we reduce the number of dots, until all can be done in 1 frame. This way the program adapts to the computer speed. If only OSEventAvail is called, the thread doesn't disappear for a number of ticks into other places.