wolf-spectrum icon indicating copy to clipboard operation
wolf-spectrum copied to clipboard

Spectrograph gets very slow after a while

Open unfa opened this issue 3 years ago • 7 comments

Look at how slow Wolf Spectrum gets after 20 minute of non-stop use: https://youtu.be/C92wFP0CG7c?t=1739

Could this be some problem with non-freed image memory or something?

unfa avatar Apr 23 '21 10:04 unfa

In the video, were you using the LV2 / VST2 build of the program?

Wolf Spectrum is probably slowing down the UI update loop because the rendering code is not very optimized. At least, it seems like Wolf Spectrum is slowing down Surge's UI. Also, the spectrogram appears to be scrolling slower when you are tweaking Surge's parameters.

pdesaulniers avatar Apr 23 '21 11:04 pdesaulniers

Yes, I've used the LV2 plug-in via Carla.

unfa avatar Apr 23 '21 11:04 unfa

@unfa I can reproduce the slowness (at least, to a certain extent):

  1. Load Surge and Wolf Spectrum in Carla
  2. Open both UIs
  3. In Surge, set the UI zoom to 200%
  4. In Surge, insert effect Conditioner > Sit Tight
  5. In Surge, tweak the LFO rate slider at the bottom of the UI while playing some notes

This causes Wolf Spectrum to scroll very slowly. The performance improves as soon as I stop playing with the slider. I suppose Surge is slowing down the UI update loop.

Also, just hovering the sliders with the mouse appear to slow down Wolf Spectrum a little bit.

As a workaround for this kind of issues, you can use the standalone JACK version of Wolf Spectrum instead of the plugin version. That way, the spectrogram should scroll more smoothly.

But then, perhaps your CPU simply had trouble keeping up during the filming? If so, I would try to optimize Wolf Spectrum for lower CPU usage, to see if it helps...

pdesaulniers avatar Apr 25 '21 20:04 pdesaulniers

CC @baconpaul, any thoughts? Do you think this might have something to do with https://github.com/surge-synthesizer/surge/issues/4347?

pdesaulniers avatar Apr 26 '21 01:04 pdesaulniers

Maybe Also though: Which surge version are you running? If you are not running 1.9 there was a vstgui memory leak which could also cause this (where reference counts on offscreen caches are in play).

baconpaul avatar Apr 26 '21 01:04 baconpaul

@baconpaul I was running the official 1.9 binary during my tests.

Anyway, I'll take another look at this issue before the next release of Wolf Spectrum.

pdesaulniers avatar Apr 26 '21 23:04 pdesaulniers

right well that one has the leak fixed.

i'm really not sure what causes that ardour x usage in surge. We do know that the alpha of our next version (where we replatform to juce) doesn't show the same problem.

baconpaul avatar Apr 27 '21 00:04 baconpaul