nikp123 / xava

X11 Audio Visualizer for ALSA
http://nikp123.github.io/xava
Other
134 stars 15 forks source link

Bring a performance boost to monstercat_filter #28

Closed make-42 closed 4 years ago

make-42 commented 4 years ago

This change should bring a performance boost to monstercat_filter by only calculating 1/3 of the bars' values since the rest is not visible, the theoretical performance boost should be +200%.

nikp123 commented 4 years ago

That isn't really an optimization, it just breaks the algorithm.

Also the number of processed bars (compared to visible ones) depends on oddoneout, not some arbritary constant I set in the code. And I even made sure that works properly.

Thanks for trying to help though.