CreatePluginInstance takes a very long time for Neural DSP plugin

Hello! I’m currently building a simple plugin hosting app and I noticed that when I call either createPluginInstance or createPluginInstanceAsync it usually works, but it takes a very long time to create the instance for my Tim Henson Neural DSP plugin. Also even when I call the async version of the function the app would still hang in place and not respond until the plugin is loaded. I also tried to load this in the AudioPluginHost example and the app would just spin forever, never really loading after minutes. And even after loading up the plugin the processing seems to be very unstable, and would go on and off after a ~20 seconds of use. I know that it’s a very big plugin but I was wondering are there ways to speed up this function call by any means through maybe multi threading or caching anything? I wonder how apps like REAPER can load up the DSP in less than 3 seconds. This is my first time posting sorry if I’m not following any adequate. Thanks a lot!

Perhaps a silly question, but are you trying this in a release build of your host?
You can also run the profiler (for example, on a loop that spawns and destroys the plugin multiple times) and it might give you a hint on what takes the longest time there.

1 Like

Omg you’re right it runs a little fast with release :sob: I’ll try to set up the profiling and get back on that later thanks for that!! Do you know if there are any bench marks on what would be a good loading time for plugins? On release build it takes ~10 seconds still and the plugin is like 200MB in size. Is this considered standard? Still hoping to increasing efficiency on that if possible…