Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Hitting bottleneck controlling close to 4,000 LEDs !

General discussion about anything TouchDesigner

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby lucasm » Tue Oct 21, 2014 4:34 pm

Hey Rob,

That makes sense, I added a limit and set quantitize steps to 1 however it doesn't seem to to changing the data type? (I had this as last CHOP in the chain so it was sampling directly from it.)

Image

Also, I've had that issue before with other node types where I try to reference a channel or something and it gives me the <class variableType ... thing. Is there a different way to reference touch arrays to avoid that?

Snaut,

That's a pretty awesome trick, would you mind explaining a bit more about why that works?
It brought frame time down to mostly under 10 ms ! well within the 60 fps range.
User avatar
lucasm
 
Posts: 257
Joined: Sat Apr 28, 2012 7:55 pm
Location: Dallas, TX

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby FM64 » Tue Oct 21, 2014 5:04 pm

Thanks Lucas for your example, definitely, using one shuffle CHOP (sequence all channels) upstream instead of the reorder CHOP before each output was the best idea.
But look a this .toe, it's even more quick, I reuse your first ideas to trim the channels and split it up inside of each dmx_outputs COMP

@Snaut, thanks for the tips but i didn't get better performance with it, the replace CHOP cooking time was around 0,15ms ...
Attachments
LEDmapper_v2.16.toe
(8.99 KiB) Downloaded 318 times
User avatar
FM64
 
Posts: 29
Joined: Thu Nov 28, 2013 5:44 pm

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby lucasm » Tue Oct 21, 2014 5:59 pm

Nice! You got that frame time WAY down.
Your file is registering 2-5 MS per frame on my end. Glad that's working out, good to know an artnet workflow could push the same if not better in terms of speed.

In the spirit of optimization I setup some nodes in my setup that captured the time in milliseconds just before serial data was sent to the arduino and just after the arduino finished it's draw loop (it sends back a single byte to touch signifying it finished a frame update)

Anyways, I'm sitting nicely just at .017 MS between the before and after. That's pretty much at 60 FPS.

I think the ws2811 leds flicker a little when updating that many led's with a fast moving pattern so it has an ever so slight jumpy look but I can only see it with a really narrow ramp animating really quickly across the panel.
User avatar
lucasm
 
Posts: 257
Joined: Sat Apr 28, 2012 7:55 pm
Location: Dallas, TX

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby snaut » Tue Oct 21, 2014 8:01 pm

The replace is fairly simple operation compared to the select as it literally just has to look if the channel is in the second input and replace the first inputs channel value. The select has to do a bit more work and watch for more changes in its input.

Compared to the trim, the replace is still slow but it was about only 1/3 of the cooktime required by the select CHOP.

cheers
Markus
User avatar
snaut
Staff
 
Posts: 901
Joined: Mon Nov 12, 2007 6:21 pm
Location: Toronto

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby rob » Fri Oct 24, 2014 12:44 pm

I've also just changed the .sendBytes methods to allow passing in an array of floats, so no conversion to ints necessary.
ie: n.sendBytes( *channel.vals ) will work now.

(build 25680+)

Cheers
User avatar
rob
Staff
 
Posts: 1671
Joined: Tue Nov 13, 2007 1:14 am

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby lucasm » Wed Oct 29, 2014 3:11 pm

Thanks Rob! I'm going to snag that update soon then :D

Lucas
User avatar
lucasm
 
Posts: 257
Joined: Sat Apr 28, 2012 7:55 pm
Location: Dallas, TX

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby ben » Mon Nov 10, 2014 2:50 pm

25880 is posted now if you wanted to try this out.
User avatar
ben
Staff
 
Posts: 2557
Joined: Thu Nov 08, 2007 6:55 pm
Location: Toronto

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby lucasm » Mon Feb 09, 2015 8:47 am

Hey everyone, been a few months, I just wanted to update this thread again with the final results of all the tinkering and learning :)

The system totals out to 5,280 led's, portable, modular, and pixel mapped. I've VJ'ed with it a few times, and it works pretty well! Still working on setting up / breaking down quickly but that's a different subject entirely.

compilation:
http://youtu.be/zMfM75qOS7s
User avatar
lucasm
 
Posts: 257
Joined: Sat Apr 28, 2012 7:55 pm
Location: Dallas, TX

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby K5Doom » Thu Feb 12, 2015 12:27 pm

This is awesome!

So what hardware would you suggest?

Teensy, Arduino, Pixel Pusher or FadeCandy?
Also, what panels are you using?

Thanks for the contribution!!
K5Doom
 
Posts: 7
Joined: Mon Aug 11, 2014 3:04 pm
Location: Montréal, Québec, Canada

Re: Hitting bottleneck controlling close to 4,000 LEDs !

Postby lucasm » Fri Feb 13, 2015 3:35 am

I did Touch Designer -> Serial Out -> Teensy 3.1 -> Octows2811 adapter board -> Leds

For the led's, there's a lot of routes you can go, I built my own custom panels out of led strips and a custom pcb I made that just made soldering everything really fast:
ledPcb.jpg
ledPcb.jpg (129.98 KiB) Viewed 7553 times

I 3d printed the diffusers and frames/brackets and other unique pieces and used some fiberboard from home depot.

These guys make some rigid large led pcb's that look pretty nice if you want something ready to go.
http://rgb-123.com/shop/



For microcontroller, you could use a lot of different things, I liked the teensy 3.1 and octows2811 adapter board. Really solid performance from that at an excellent price point.

Obviously running serial long lengths is not as ideal as ethernet, but if you go this route, this is a really solid active usb extender cable:
http://www.amazon.com/Monoprice-Female-Extension-Repeater-Compatible/dp/B004PLLA9U/ref=sr_1_10?ie=UTF8&qid=1423812738&sr=8-10&keywords=usb+extension+active+monoprice

Vj'ed with it a few times and it carries the data reliably and has no problems detecting on the pc side.


The part that I think is most limiting for some is mapping the leds, visually. Especially when you have a custom setup, or custom arrangement.

I uploaded a barebones examples TOE further back in this thread that shows how I do it from A-Z (thanks to everyone here for helping work out the kinks on that!)

Hope that helps!
Lucas
User avatar
lucasm
 
Posts: 257
Joined: Sat Apr 28, 2012 7:55 pm
Location: Dallas, TX

PreviousNext

Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: No registered users and 16 guests