Staacks / there.oughta.be

Projects featured on my blog at https://there.oughta.be
https://there.oughta.be
GNU General Public License v3.0
101 stars 33 forks source link

Increase animation speed #23

Closed AlienCargo closed 2 years ago

AlienCargo commented 2 years ago

Sorry to bother you again. Is there an easy way to increase the animation speed? I have about 120fps with my Raspberry 3b+ and the animation is smooth and looks pretty good. But i like to have the animation speed kind of faster. I have played with some values i found but the animation speed didn't change. So how can i speed up the animation?

Staacks commented 2 years ago

You probably tried to change ANIMSTEP? (https://github.com/Staacks/there.oughta.be/blob/master/led-cube/led-cube/cpu-stats-gl.cpp#L26) This only changes the animation of properties, i.e. how fast the color changes if a new temperature has been reported to the cube.

If you want to change the speed of the entire animation, you should play with the value here: https://github.com/Staacks/there.oughta.be/blob/master/led-cube/led-cube/cpu-stats-gl.cpp#L542

AlienCargo commented 2 years ago

Thank you! Yep, that did the trick. I found the ANIMSTEP but that was not the effect i want. Line 542 is the deal i want. Amazing. Now i'm happy. I will play with the values.