Plugin Host Scanning

Discuss issues relating to audio plugins

Plugin Host Scanning

Postby chkn » Wed Aug 24, 2011 5:11 pm

When the plugins getting scanned for the first time (not second time), it seems the loading and checking blocks the whole message thread, which is ok so far.
The big problem is, for example if plugin number 10 is scanned, but the GUI shows that still plugin number 1 is scanned, the application seems to freeze. There should be enough time between the plugin-callbacks to handle the GUI-updates, so that the user can see the progress, and not thinks the application is crashed.
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin Host Scanning

Postby jules » Wed Aug 24, 2011 5:20 pm

Unfortunately I did it that way because some plugins don't work unless you load them on the message thread..
User avatar
jules
Fearless Leader
 
Posts: 17216
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin Host Scanning

Postby chkn » Wed Aug 24, 2011 5:25 pm

yes, i know, thats ok, but after a plugin was scanned, and before the next plugin will be scanned, the scanner should be able to update the GUI, that's not the case at the moment.
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin Host Scanning

Postby jules » Wed Aug 24, 2011 5:55 pm

Oh, I see. I assumed it already did that..
User avatar
jules
Fearless Leader
 
Posts: 17216
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin Host Scanning

Postby chkn » Wed Aug 24, 2011 6:01 pm

try on windows with a big plugin-directory, it seems there is just not enough time between to update the gui
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin Host Scanning

Postby chkn » Fri Aug 26, 2011 10:48 am

FIX: just increase the number in runDispatchLoopUntil inside the scanning loop and it works!

Code: Select all

for (;;)
    {
        aw.setMessage (TRANS("Testing:\n\n")
                         + scanner.getNextPluginFileThatWillBeScanned());

        MessageManager::getInstance()->runDispatchLoopUntil (300);  // instead of 20

chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm

Re: Plugin Host Scanning

Postby jules » Fri Aug 26, 2011 6:12 pm

Fair enough, but it will add a 300ms pause between plugins, which will slow things down a lot if you have a large number of them.
User avatar
jules
Fearless Leader
 
Posts: 17216
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Plugin Host Scanning

Postby chkn » Fri Aug 26, 2011 7:27 pm

yes, but still better than redraw artefacts... (mabye 100 are also ok, i will check)
chkn
JUCE UberWeenie
 
Posts: 865
Joined: Thu Mar 08, 2007 6:17 pm


Return to Audio Plugins

Who is online

Users browsing this forum: No registered users and 0 guests