From 3dcbba38bf5d317a007ac2cdc575c7e00461ecb7 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Sat, 25 Jul 2020 21:46:25 +1000 Subject: [PATCH] Fix perf regression --- src/audio_core/voice_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio_core/voice_context.cpp b/src/audio_core/voice_context.cpp index 1d8f69844..16ae1afe8 100644 --- a/src/audio_core/voice_context.cpp +++ b/src/audio_core/voice_context.cpp @@ -520,7 +520,8 @@ void VoiceContext::SortInfo() { } void VoiceContext::UpdateStateByDspShared() { - voice_states = dsp_voice_states; + std::memcpy(voice_states.data(), dsp_voice_states.data(), + sizeof(VoiceState) * dsp_voice_states.size()); } } // namespace AudioCore