diff options
| author | Subv <subv2112@gmail.com> | 2017-09-25 13:06:42 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2017-09-25 18:31:37 -0500 |
| commit | 35329570999c5fbab7996f9d7beac917e912cb36 (patch) | |
| tree | 20aa98adee17b0a2886273806a62f333d1198ab4 /src/core/hle/kernel/process.cpp | |
| parent | 75f023a48bd821564cb4ab325abd291cf5c74e83 (diff) | |
Audio: Use std::deque instead of std::vector for the audio buffer type (StereoBuffer16).
The current code inserts and deletes elements from the beginning of the audio buffer, which is very inefficient in an std::vector.
Profiling was done using VisualStudio2017's Performance Analyzer in Super Mario 3D Land.
Before this change: AudioInterp::Linear had 14.14% of the runtime (inclusive) and most of that time was spent in std::vector's insert implementation.
After this change: AudioInterp::Linear has 0.36% of the runtime (inclusive)
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
0 files changed, 0 insertions, 0 deletions
