[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] Servers with nil latency?



I agree it's a bad design. That's one of the reasons why my chucklib
processes keep their own latency values, and always override the
server's latency.

I also dislike the fact that latency is in seconds but that isn't
likely to change.

The use case in chucklib is that you might need to control which
processes' threads wake up before others - say one process calculates
a value that another process needs. In chucklib, the "earlier" process
can have a larger latency value. Threads are scheduled so that the
events occur on the server at the same time. Because I account for
latency in beats, not seconds, I can change tempo without the
processes getting out of sync. (Some kind of Mediator might be better
here, but sometimes you can't tie the streams together so closely.
Sometimes they have to run independently, but one listens to the
other.)

More complex than latency in seconds, yes, but more useful too.

Not a solution :)  but I'm with you that it's kind of a dodgy idea.
hjh


On Dec 18, 2007 6:10 PM, ronald kuivila <rkuivila@xxxxxxxxxxxx> wrote:
> Hi all,
>
> (The following is intended as a design discussion, I have no
> intention of trying to make any changes on this for 3.2)
>
> I fully understand the need for OSC commands without timestamps, but
> setting a Server's latency to nil still seems like a hack:
>
> 1. It affects all processes using the server rather than only the
> processes that need immediate scheduling.  So Patterns, that could
> schedule their events in advance and stay out of the way are
> competing for the same time points as the user interactions.
>
> 2.  It is not fully supported.  For example, in Event the check is
> only found in the \note eventType.
>
> 3. It seems to conflate an attribute of the Server with a scheduling
> choice.
>
> Wouldn't it be better to have a separate Server object with the same
> NetAddr that sends all bundles without
> timestamps? (OK that contradicts point 3 above, but still...)


-- 
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman