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

Spectrograph gets very slow after a while #51

Open
unfa opened this issue Apr 23, 2021 · 7 comments
Open

Spectrograph gets very slow after a while #51

unfa opened this issue Apr 23, 2021 · 7 comments
Labels
bug 🐛 Something isn't working optimization Related to improving the performance of the program
Milestone

Comments

@unfa
Copy link

unfa commented Apr 23, 2021

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?

@pdesaulniers
Copy link
Member

pdesaulniers commented Apr 23, 2021

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 pdesaulniers added bug 🐛 Something isn't working optimization Related to improving the performance of the program labels Apr 23, 2021
@unfa
Copy link
Author

unfa commented Apr 23, 2021

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

@pdesaulniers
Copy link
Member

pdesaulniers commented Apr 25, 2021

@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
Copy link
Member

CC @baconpaul, any thoughts? Do you think this might have something to do with surge-synthesizer/surge#4347?

@baconpaul
Copy link

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).

@pdesaulniers
Copy link
Member

pdesaulniers commented Apr 26, 2021

@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.

@baconpaul
Copy link

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.

@pdesaulniers pdesaulniers added this to the v1.1.0 milestone Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working optimization Related to improving the performance of the program
Projects
None yet
Development

No branches or pull requests

3 participants