Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer / Sync / Delay / Latency maybe? #125

Open
Latev7 opened this issue Nov 27, 2022 · 3 comments
Open

Buffer / Sync / Delay / Latency maybe? #125

Latev7 opened this issue Nov 27, 2022 · 3 comments

Comments

@Latev7
Copy link

Latev7 commented Nov 27, 2022

Thank you for your product, the work you put into it and the accompanying imagination.

I am looking for a solution to a simple problem: the monitor works with a delay, also the delay appears during the rendering of the frame in the player, something else ... in a word, I don’t know what the delay consists of, but Adrilight is so fast that I need a tool to adjust its output moment to the COM port.

What is the name of this tool? Buffer, sync, latency maybe etc.

P.S. The nature of this need differs from Fastled.delay() or just Delay() because they waste the result. Here we want full quality fast smooth output, but optionally buffered in milliseconds.

@fabsenet
Copy link
Owner

fabsenet commented Nov 27, 2022 via email

@Latev7
Copy link
Author

Latev7 commented Nov 27, 2022

Thanks for advice anyway. This might be useful for someone.

It would be nice to have control in milliseconds of course. Adapt to different devices in the best way.

Found a latency setting (only for FTDI chips) for the COM port in the device manager, but this has no effect for me.
http://www.ftdichip.com/Support/Knowledgebase/index.html?an232b_04adjlatency.htm

@Kaitoukid93
Copy link

I think you can store the led frame by get the color from SpotSet.Spots to make a frame buffer. After the delay(the frame counter matched) call GetOutputStream but instead of reading color Data from Spots(which is realtime), read from the buffer, then serialPort.write() to send data to LED. The buffer also need to be realtime updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants