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:
Robbert van der Helm
2021-05-05 19:44:44 +02:00
parent 2c33048137
commit 9424c36993
5 changed files with 59 additions and 6 deletions
+8 -3
View File
@@ -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(