Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11533 from Sam-Belliveau/smoother-vi-skip
Set VI Skip Activation to Half The Audio Buffer
  • Loading branch information
JMC47 committed Feb 3, 2023
2 parents 46b9967 + 4a97dc7 commit aece99f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/CoreTiming.cpp
Expand Up @@ -386,7 +386,7 @@ void CoreTimingManager::Throttle(const s64 target_cycle)
// It doesn't matter what amount of lag we skip VI at, as long as it's constant.
const DT max_variance =
std::chrono::duration_cast<DT>(DT_ms(Config::Get(Config::MAIN_TIMING_VARIANCE)));
const TimePoint vi_deadline = time - max_variance;
const TimePoint vi_deadline = time - std::min(max_fallback, max_variance) / 2;
m_throttle_disable_vi_int = 0.0 < speed && m_throttle_deadline < vi_deadline;

// Only sleep if we are behind the deadline
Expand Down

0 comments on commit aece99f

Please sign in to comment.