-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
[BUG] Pan LFO uses lots of CPU #97
Comments
Thanks for reporting this issue! I have a decent guess that the issue has to do with the UI re-painting. I had a similar issue on Linux with the Insanity visualization, which led to the introduction of the "UI throttling" option. One way to test this would be to assign the pan LFO parameters to a global parameter target, and then try changing those parameters with the UI closed (not sure if that's possible in Ardour). Would it be possible to try testing this on your system? I have a couple other optimisations to try out in the meantime. Thanks, |
I've just set up a small torture test in Ardour with multiple ChowMatrix VST plugins in series. The CPU seems to rise for every LFO that is set above 0Hz, and it doesn't seem to be related to whether the ChowMatrix UI is open or closed. 21% CPU, 4 plugins, 2 nodes, no LFO panning, UI open Thanks |
Okay, this is awesome data, thanks for sharing! I definitely know where to look now for improving this. A tiny bit more information that will help: could you share your session sample rate and buffer size, as well as the CPU that you're running on? |
So I had a chance to look at the pan modulation code this evening and noticed a bunch of "mistakes" that I made when programming it originally, including:
Anyway, I've made a branch with some optimisations. @steveb if you're comfortable building the plugin yourself, would you mind testing out these changes? If not, I can try to make some builds for your system. Thanks, |
Good to see that there is some improvement! I spent some more time this evening trying to re-create the spikes like you noticed and performance profile to see where the spikes were coming from. Unfortunately, I haven't been successful, but will keep trying. In the meantime, would you be equipped to try profiling the plugin locally on your machine? This may be easier with the standalone plugin, than profiling it in Ardour. Speaking of which, do the CPU spikes occur with the standalone plugin also? Thanks, |
Since the change mentioned above does show improvement, and because it's just better code, I'm going to go ahead and merge it (#99). I'll keep this issue open to keep working on this issue in general. |
Describe the bug
DAW and ChowMatrix becomes unresponsive when multiple nodes have pan LFO enabled, with multiple ChowMatrix plugins running
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Panning LFO would ideally cause minimal load, so I can have many plugin instances with much LFO panning.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
I love this plugin and want to use it everywhere all the time
The text was updated successfully, but these errors were encountered: