-
Notifications
You must be signed in to change notification settings - Fork 70
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
Slow startup #1243
Comments
Hello. Try isolating which plugin support is slowing it down. Also, try adding -D (debug) to the commands to get more info about where it might be slowing. Another thing that can be tried is this option, to see if the cache is constantly being re-created each time: For LADSPA and LinuxVST, muse creates a cache the very first time which can be slow. For LV2, no cache is used at all. An LV2 cache is not necessary since all the plugin info is stored in TTL files. |
Hi Tim, Some quick tests I did (same set-up no changes in plugins). -N takes load time to around 40 seconds -2 load time is around 53 seconds Using both of those together (unsurprisingly) takes about 4 seconds. But then, of course, only DSSI plugins are available. -C load time is around 28 seconds In this last case I still see lots of Something else I noticed running in the terminal is that muse was complaining about duplicate plugins found in both So I tried removing all paths which essentially drive to 'duplicate' plugins. On here that meant removing all of the /usr/local/lib ones and leaving just the /usr/lib64 ones. I essentially brought plugin paths to the following (taken from the cfg file):
Load time is still around 41 seconds. An improvement compared to the initial ~ 63 but still quite a bit IMHO. Something I noticed is that for LADSPA and DSSI muse still complains about duplicates found in Overall, I'm wondering if there's a more efficient way to do plug-in scanning, well knowing that plug-in situation is always a big mess depending on user set-up, distribution, etc. etc. Some UX suggestions would be:
These are just suggestions from a user perspective ;-) Hope this helps. |
Hi sorry for the delay. Thanks for the tests.
That is because we don't cache LV2 scans. They are done always each time. The -C test seems to suggest that (non-LV2) plugin scanning is taking place each time muse is started. If you run with just -D (debug) alone, you might see a line somewhere near the top which says In addition to -V and -2, there is one more plugin disabling option I forgot to mention, that you could test: I would like to have an idea of just how many plugins we are dealing with here. What kind of hardware is involved here?
If I recall, that might be because some DSSI plugins install themselves and/or links in both places. Thanks. |
Indeed I see this:
Not sure why it is considered changed as I'm not aware of any explicit changes
This is the output of
However it seems those are XML files? So I guess size doesn't give an idea of the number of plugins?
What I was meaning to say is that I think some search paths might be hardcoded? As a test for this I removed all search directories for LADSPA and DSSI in the GUI and I still see messages about LADSPA and DSSI plugins being imported. |
Fixing empty ladspa_dsp.so support... |
Congratulations! You revealed at least two bugs, and the second you didn't even know about. So... About ladspa_dsp.so, which is part of the DSP project at https://github.com/bmc0/dsp With MusE, it was not detecting that the file initially has no plugins, and did not throw it into Although I have not tried it yet, it should work once you create config files for it. I must say, this 'user-configuration' scheme seems dangerous to me. Meanwhile, our MESS synth plugin 'simpledrums' was missing from installation Try it, lemme know if any trouble. Thanks. |
Hi thanks for the details and updated release. I downloaded the new AppImage and deleted all config and cache files just to make sure I was testing 'fresh'.
After removing irrelevent / duplicate (e.g. sumlinked) directories from all of the paths (e.g. /usr/local locations), I first got a start time of about 40 seconds, then after that about 15 seconds. I still do think in any case it would be great to provide more effective feedback to the users, e.g. a progrebar of plugins being scanned etc, and not just in the splash screen, just my two cents. I've diggged a bit the dsbug (-D) output and noticed some stuff, which maybe is well known and totally irrelevant, but still sharing it. There's a bunch of ladspa plugins which are detected here:
DSSI plugins seem to be scanned before LADSPA ones (at least looking at the debug log in linear way), while the debug message seems to say they are being scanned before LV2 I rechcked the (estimated) number of plugins, for everything besides LV2 by parsing the cache files: For LV2 I simply counted the Still from the debug log ladspa, dssi, vst all take about 1 second to 'scan' (on successive scans). So it seems the bottleneck might be LV2 here? :-( |
Hi. Just pushed to master:
Try it, see if it improves a bit. So... I have reviewed the code and I thought about what the other developer said at the time Can't guarantee when, but I would like to try. |
Had the time now to test this. A 'fresh' run gave me now 38 seconds (re-scanning all plugins) After that first run (no command line flags) it took about 14 / 15 seconds so there's an improvement. Regarding how to cache plugins maybe a middle ground would be to do (propose) that within the software when e.g. a user tried to add a synth track or a plugin slot. So something like "A plug-in scan is needed. Proceed?" That IMHO would cover users who only use MIDI (they probably won't add plugins) and ones who want to use plugins. In this way you don't have the 'delay' at startup? |
Describe the bug
When starting Muse 4.1 on Linux it takes very long to actually start the programme which 'hangs' at the splach screen. On my relatively 'modern' machine it taskes from around 71 to 80 seconds (as reported by the Total start-up time message when loading from the terminal). I tested this about 5-6 times.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Desktop (please complete the following information):
Additional context
Running from the command line there seems to be quite a bottleneck when this appears:
Initializing Native VST support. Using VESTIGE compatibility implementation.
I do indeed have quite a few (a lot of) plugins (especially LV2) but as a benchmark these are loading times / plug-in cache creation for other daws on the same systems (so same plug-ins installed):
The text was updated successfully, but these errors were encountered: