On Wed, 2006-05-17 at 10:38 +0200, Hans-Christoph Steiner wrote:
latency, there would be no difference in latency if a Pd object was polling a thread or polling a file in /dev/; that object would still be polling at the same rate. Adding a thread would just put extra code between the Pd object and the /dev/ file.
yes ... but using pd's timer callbacks to poll the devices introduces two problems: - pd's timer callbacks are implemented as a linked lists ... adding to a linked list is highly inefficient ... O(n) ... one of the biggest problems of pd's scheduler ... - polling the device from the pd thread would add overhead code which is possibly blocking ... so your code can't be used in low-latency systems ...
cheers ... tim
-- TimBlechmann@gmx.de ICQ: 96771783 http://www.mokabar.tk
A paranoid is a man who knows a little of what's going on. William S. Burroughs