ofxPixelPusher
ofxPixelPusher copied to clipboard
Only updates strips about once per second
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.
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.
I'll start a fresh project in Visual Studio tomorrow and see if I can get it to work without issue.
Issue #6 has some suggestions from another user about what they did to get it working in Xcode.