Cache VST3 parameter information

This is in some cases needed to get decent performance in REAPER, as
REAPER seems to query this information (which cannot change without the
plugin requesting a restart) four times per second.
This commit is contained in:
Robbert van der Helm
2021-01-30 22:24:05 +01:00
parent 8bba5d8773
commit b5dd806b2d
7 changed files with 181 additions and 46 deletions
+3 -3
View File
@@ -88,9 +88,9 @@ Vst3PluginBridge::Vst3PluginBridge()
Vst3PluginProxyImpl& proxy_object =
plugin_proxies.at(request.owner_instance_id).get();
// To err on the safe side, we'll just always clear out bus
// info cache whenever a plugin requests a restart
proxy_object.clear_bus_cache();
// To err on the safe side, we'll just always clear out all
// of our caches whenever a plugin requests a restart
proxy_object.clear_caches();
return proxy_object.component_handler->restartComponent(
request.flags);