diff options
| author | 2020-07-25 21:46:25 +1000 | |
|---|---|---|
| committer | 2020-07-25 21:46:25 +1000 | |
| commit | 3dcbba38bf5d317a007ac2cdc575c7e00461ecb7 (patch) | |
| tree | df4c5cc9c69219fb21a3669bcdaf5b9458978898 /src | |
| parent | Fix stream channel count when outputting to stereo (diff) | |
| download | yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.gz yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.tar.xz yuzu-3dcbba38bf5d317a007ac2cdc575c7e00461ecb7.zip | |
Fix perf regression
Diffstat (limited to 'src')
| -rw-r--r-- | src/audio_core/voice_context.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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() { | |||
| 520 | } | 520 | } |
| 521 | 521 | ||
| 522 | void VoiceContext::UpdateStateByDspShared() { | 522 | void VoiceContext::UpdateStateByDspShared() { |
| 523 | voice_states = dsp_voice_states; | 523 | std::memcpy(voice_states.data(), dsp_voice_states.data(), |
| 524 | sizeof(VoiceState) * dsp_voice_states.size()); | ||
| 524 | } | 525 | } |
| 525 | 526 | ||
| 526 | } // namespace AudioCore | 527 | } // namespace AudioCore |