zamaudio / zam-plugins

Collection of LADSPA/LV2/VST/JACK audio plugins for high-quality processing
http://www.zamaudio.com/?p=976
GNU General Public License v2.0
265 stars 37 forks source link

ZaMultiComp(X2) high DSP load #75

Closed pdesaulniers closed 5 years ago

pdesaulniers commented 5 years ago

I really like ZaMultiCompX2! However, on my machine, running one idle instance of this plugin in jalv raises the Jack DSP load to almost 40%, which I think is too high.

It seems like most of the overhead comes from the averageabs function: 2019-03-07-19 16 16

zamaudio commented 5 years ago

How did you generate that table? I have addressed this issue and reduced load with other compressors in 82b1811

pdesaulniers commented 5 years ago

I used callgrind and kcachegrind. Basically:

DEBUG=true make
valgrind --tool=callgrind bin/ZaMultiCompX2

# run the program for a while, then close it

kcachegrind callgrind.out.XXX

Anyway, it's working great now, thanks!

zamaudio commented 5 years ago

Please use commit d211bff as the above commit I recommended before has a floating point accumulation bug.

zamaudio commented 5 years ago

The moving dots that show the current level per band are now much smoother too.

jrigg commented 5 years ago

Thanks for this. CPU load of standalone JACK version has dropped from 33% to 25% here. Nice improvement.