[PD-dev] outlet_anything() & threads
Tim Blechmann
TimBlechmann at gmx.net
Wed May 17 11:00:09 CEST 2006
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20060517/d82baff0/attachment.pgp>
More information about the Pd-dev
mailing list