audio_core: Only perform audio stretching if below full speed. (#7201)

This commit is contained in:
Steveice10
2023-11-26 12:06:59 -08:00
committed by GitHub
parent c0ecdb689d
commit 670e9936a4
13 changed files with 83 additions and 52 deletions

View File

@@ -42,6 +42,8 @@ public:
Results GetAndResetStats(std::chrono::microseconds current_system_time_us);
Results GetLastStats();
/**
* Returns the arithmetic mean of all frametime values stored in the performance history.
*/
@@ -82,6 +84,9 @@ private:
Clock::time_point frame_begin = reset_point;
/// Total visible duration (including frame-limiting, etc.) of the previous system frame
Clock::duration previous_frame_length = Clock::duration::zero();
/// Last recorded performance statistics.
Results last_stats;
};
class FrameLimiter {