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

Add some butter #112

Open
McAroni opened this issue Jan 23, 2021 · 2 comments
Open

Add some butter #112

McAroni opened this issue Jan 23, 2021 · 2 comments

Comments

@McAroni
Copy link

McAroni commented Jan 23, 2021

When facing fast moving pictures like in action movies, games or just browsing the interwebs adrilight feels very hectic and unsmooth. One easy way to fix this: add some butter.

This means:
When extracting the colors from the currently displayed frame and calculating the colors, use a weighted average on the current and the last frame for each LED.

Pro:
The background lights will appear much smoother and less hectical.
Also, this could be used to compensate a really low frame rate if implemented properly.

Cons:
The background lights will be a bit delayed, depending on the strength of the effect.

=> add an option to add some butter with a slider for the effect strength (which is only the amount of weighting when calculating the weighted average).

I already changed the .ino file to add some butter (with a 3:1 ratio where 3 is the old and 1 is the new frame at 30 fps) and this feels so much better to me. But of course this solution doesn't offer the option to change this by just moving a slider in Adrilight.
If you want, I can offer my modifications to the .ino file as a quick&cheap solution.

@inxomnyaa
Copy link

inxomnyaa commented May 14, 2021

This is exactly what i was going to mention, as i just installed my hardware and this (btw very well running software, the only one that manages to do 60fps with really tiny resources) program.

Some frame interpolation could really help with the flickering.

Would be interested in your .ino btw

@McAroni
Copy link
Author

McAroni commented May 15, 2021

Here you go. I can't upload the .ino-file directly so i had to zip it.
Make sure to configure the ino file according to your hardware setup. You can change the filter strength by adjusting the constant BUTTER_STRENGTH.

adrilight_buttered.zip

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

2 participants