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

High CPU utilization with 20+ tracks #1916

Open
unfa opened this issue Apr 2, 2015 · 5 comments
Open

High CPU utilization with 20+ tracks #1916

unfa opened this issue Apr 2, 2015 · 5 comments

Comments

@unfa
Copy link
Contributor

unfa commented Apr 2, 2015

I know Zyn is big and having 25 instances makes an impact, but hey - there are only 4-5 of them playing simultaneously at all times - why do the rest drains my CPU time when they are not used?

It feels like every new instance of ZynAddSubFX adds some CPU drain even when it's not playing any notes. I wonder if it's really ZynAddSubFX responsible the performance impact or is it LMMS.

I wonder if something could be done about this.

The project I've expirienced this issue in is here:
https://lmms.io/lsp/?action=show&file=6599

Let me know if you experience this performance impact too.

@tresf
Copy link
Member

tresf commented Apr 2, 2015

The project I've expirienced this issue in is here unfa-Spoken.mmpz

Fixed. :)

Seriously though, depending on the back-end, I can agree that we have very high CPU utilization on your spoken track regardless of the backend being used and speaks more to need for overall resource improvements rather than a specific plugin. I can get the software to run really slow and take up all of my CPU just adding TripleOscillators and piano rolls, so from my findings, the Zyn stuff you are observing is likely to be core-performance related.

@tresf tresf added the bug label Apr 2, 2015
@tresf
Copy link
Member

tresf commented Apr 2, 2015

Oh... and here're some test results from an unlikely thread title: #1600 (comment)

@unfa
Copy link
Contributor Author

unfa commented Apr 2, 2015

Lol, my track has become a benchmark :D How awesome!

@tresf
I'm glad it's rather LMMS issue, because we can do something about it.

My first idea is: could LMMS dynamically "stop" any instrument/effects plugins from operation if they have no notes played or sounds above (ror example) -80dB level coming out?

@tresf
Copy link
Member

tresf commented Apr 2, 2015

@unfa,

No idea what can be done to help this. It will take some research. 👍

@fundamental
Copy link
Contributor

@unfa
I'm not sure how much is lmms and how much is zyn, but I do remember seeing that the internal overhead on non-playing standalone zyn was higher than I would like it to be.
Lowering that overhead is somewhat complicated due to the existence of always on effects, but some improvements can likely be made (and the 2.4.4->2.5.0 upgrade should eliminate some of the overhead).

@tresf tresf changed the title Bad performance for big projects with ZynAddSubFX High CPU utilization with 20+ tracks Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants