ofxPixelPusher icon indicating copy to clipboard operation
ofxPixelPusher copied to clipboard

Only updates strips about once per second

Open timrolls opened this issue 7 years ago • 3 comments

Really struggling to communicate with Pixel Pusher from ofx/c++.

Got this library to compile, on windows only, by referencing closed issues (preprocessor flags, etc). It sort of works, but our strips are only updating about once per second. Sending from Processing or LED Lab works normally, so it's not a setup problem.

That's the frequency PP is supposed to do its announcing/ discovery, is it only updating the strips when that happens?

The update methods are all protected, and happening in the background, not sure how to troubleshoot this further.

On another note - is there a working version without ASIO? that seems to be the problem compiling on OSX. I've seen mentions of using this on OSX, but can't find any code that compiles.

timrolls avatar Sep 27 '17 23:09 timrolls

Hey there --

Sorry to hear that you're having trouble!

Did you use the property sheet from ofxAsio in Visual Studio? I can't replicate any issues when using the property sheet, though it's possible that without it you'd need to manually enter the preprocessor definitions.

Regarding the PixelPusher issues -- you can always change the log level using DiscoveryService::setLogLevel() to change it from PRODUCTION to DEBUG (PRODUCTION is the default).

If you have another networking library that you prefer over ASIO, you can fork the project and replace the ofxAsio::UdpReceiver in DiscoveryService and ofxAsio::UdpSender in PixelPusher to whatever you'd like; just be warned that it probably needs to be multithreaded in order to work properly.

morphogencc avatar Oct 27 '17 02:10 morphogencc

I'll start a fresh project in Visual Studio tomorrow and see if I can get it to work without issue.

morphogencc avatar Oct 27 '17 02:10 morphogencc

Issue #6 has some suggestions from another user about what they did to get it working in Xcode.

morphogencc avatar Oct 30 '17 05:10 morphogencc