OSC Buffer size, Packets Per Second

gavspav's icon

I am sending a constant stream of OSC messages via UDP inside a DIY Pluggo Plugin.

I am sending them back to myself, 127.0.0.1, localhost.

I am sending 45 packets per second and it works fine.

When I have more than one instance of the plug in though, I am getting network congestion.

So I was wondering if anyone could tell me:

a)How many packets I could realistically hope to send per second.

b)How to set up the udp buffer to maximize the above figure.

If anyone knows the answer, thanks alot

Gavin

jvkr's icon

Are you sure the vst's are not sending to eachother creating a network loop? 45 per second is not really much.

_
johan

gavspav's icon

Not sure no but I'm only sending from my patch, not receiving!

As i said 45 per second works fine but when I have say 4 instances of the plug in things get a bit vlogged.

Seems to max out at about 100 per second

Gav

jvkr's icon

It overdrive is on, does turning it of do anything good?

_
johan

Mattijs's icon

Quote: gavspav wrote on Sun, 02 December 2007 14:53
----------------------------------------------------
> Not sure no but I'm only sending from my patch, not receiving!
>
> As i said 45 per second works fine but when I have say 4 instances of the plug in things get a bit vlogged.
>
> Seems to max out at about 100 per second
>
> Gav
----------------------------------------------------

I am sure you tested this (not inside a pluggo, just in max):

Max Patch
Copy patch and select New From Clipboard in Max.

With this patch I get at least up to 1000 msg/sec.

So I guess your question is what the difference is between sending udp messages to a pluggo compared to plain max. Is that correct?

Mattijs

gavspav's icon

No I haven't tried it.

Converting this patch to send it to my osc receiver app I am getting 100 messages a second.

But if I send 4 messages I get 400 messages/sec no probelm.

So yes it is Pluggo that is slowing the rate.

I now understand this is because of the (in)frequency which my host (Live) sends parameter values to my plug in

Which judging my other forum threads is impossible to change?

By the way Mattijs I PM'd you.

thanks,

gavin

Mattijs's icon

Quote: gavspav wrote on Mon, 03 December 2007 12:25
----------------------------------------------------

> By the way Mattijs I PM'd you.
>

That's right, I haven't had the time to reply yet. But I'm quite sure that the sync options of pluggo will not help in the communication to the outside world. They're meant to sync playback inside pluggo to the host sequencer, mostly in the audio domain.

As long as the internal events thread doesn't update often enough there is no way to get data from inside a pluggo to the outside world accurately timed.

What I do now is send the notes (that require most accurate timing) to max via midi and the automation changes via udp. Parameter changes that have to be rythmically (i.e. require accurate timing) are sent via cc's.

But afaik any sending via midi should be unnecessary. Udp communication, especially within one computer, is more than fast enough to do this correctly.

In short, I guess, Cycling '74, we'd greatly appreciate a way to communicate from pluggo to max, accurately timed.

Mattijs