Scan for data stram

Mar 1, 2012 at 2:37pm

Scan for data stram

Hello,

I’ve got an stream of lists (1 list every 20-30ms). I need to test if the stream is running or not. I’ve made a method using a additional [metro] object timing every 500ms using a [timer] object

I find this a very CPU consuming method. Has any of you have an idea of a approach not using a metro object?

Here’s en excerpt of my idea

– Pasted Max Patch, click to expand. –
#61961
Mar 1, 2012 at 3:31pm

Is it really CPU consuming?

Here is a way without metro:

– Pasted Max Patch, click to expand. –
#223792
Mar 1, 2012 at 3:59pm

My guess is your method is faster. I’ve been thought to have as little as possible cycles in the max scheduler, which your method provides!

Thank you.

#223793
Mar 1, 2012 at 8:47pm

Or even:

– Pasted Max Patch, click to expand. –
#223794

You must be logged in to reply to this topic.