mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-14 00:02:10 +02:00
Temporarily memoize IPlugView::canResize()
This makes VST3 plugin resizing more responsive, because this function would otherwise be constantly running in lockstep from the GUI thread.
This commit is contained in:
@@ -1400,9 +1400,14 @@ void Vst3Logger::log_response(bool is_host_vst, const Ack&) {
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(bool is_host_vst,
|
||||
const UniversalTResult& result) {
|
||||
log_response_base(is_host_vst,
|
||||
[&](auto& message) { message << result.string(); });
|
||||
const UniversalTResult& result,
|
||||
bool from_cache) {
|
||||
log_response_base(is_host_vst, [&](auto& message) {
|
||||
message << result.string();
|
||||
if (from_cache) {
|
||||
message << " (from cache)";
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Vst3Logger::log_response(
|
||||
|
||||
@@ -242,7 +242,9 @@ class Vst3Logger {
|
||||
const YaUnitHandler2::NotifyUnitByBusChange&);
|
||||
|
||||
void log_response(bool is_host_vst, const Ack&);
|
||||
void log_response(bool is_host_vst, const UniversalTResult&);
|
||||
void log_response(bool is_host_vst,
|
||||
const UniversalTResult&,
|
||||
bool from_cache = false);
|
||||
void log_response(bool is_host_vst,
|
||||
const Vst3PluginFactoryProxy::ConstructArgs&);
|
||||
void log_response(
|
||||
|
||||
Reference in New Issue
Block a user