Vvvv getting slow using Switch

Hi,

see the attached file. When I connect a GetSlice output to a Switch-input most actions in the vvvv-GUI are getting very slow. Every click I make has a delay before it’s recognized. Don’t know if it is a bug or I did something wrong.

Greetings
Daniel

switch.v4p (5.0 kB)

I had a look at this in Debug mode and its really performance eating. I read this before somewere in vvvvorums - switch output is too heavy.
Cant you use something different? Instead the output, you can store your different outputs by setslice and store this in s+h by every change.
Anyway I posted this version

switch-2.v4p (12.3 kB)

I need something like the switch, which toggles the incoming slices between two outputs. So the outputs look something like this:

OUTPUT1…OUTPUT2
1…null
1…2
3…2
3…4
5…4
5…6
7…6

and so on

okay I see. You can use this as well, with some small changes.
S+H node is toring your values, every time there is a change. So it doesnt get lost.
LFO gives your timming and it bangs two times for dir counter and just once a cycle for storing it. You can change this timing for your needs, if it doesnt match.

switch-3.v4p (17.2 kB)