mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Avoid allocations when reading VST3 process data
On the plugin side. We still need to do a lot of optimizations elsewhere.
This commit is contained in:
@@ -186,10 +186,8 @@ Vst3PluginProxyImpl::process(Steinberg::Vst::ProcessData& data) {
|
||||
last_audio_thread_priority_synchronization = now;
|
||||
}
|
||||
|
||||
// TODO: Document
|
||||
// TODO: Actually repopulate `process_data` with new data, right now this
|
||||
// assignment just destroys the old object and creates a new object.
|
||||
process_data = data;
|
||||
// We reuse this existing object to avoid allocations
|
||||
process_data.repopulate(data);
|
||||
|
||||
ProcessResponse response =
|
||||
bridge.send_audio_processor_message(YaAudioProcessor::Process{
|
||||
|
||||
Reference in New Issue
Block a user