From 137cf485b235beca7a0ee32ee49231aa9b1e7e5d Mon Sep 17 00:00:00 2001 From: Sam Belliveau Date: Mon, 13 May 2024 14:06:27 -0400 Subject: [PATCH] Remove min_clock_per_sleep to improve VPS consistency --- Source/Core/Core/CoreTiming.cpp | 6 ------ Source/Core/Core/CoreTiming.h | 1 - 2 files changed, 7 deletions(-) diff --git a/Source/Core/Core/CoreTiming.cpp b/Source/Core/Core/CoreTiming.cpp index 627f14cbce..26e366392d 100644 --- a/Source/Core/Core/CoreTiming.cpp +++ b/Source/Core/Core/CoreTiming.cpp @@ -373,11 +373,6 @@ void CoreTimingManager::Throttle(const s64 target_cycle) { // Based on number of cycles and emulation speed, increase the target deadline const s64 cycles = target_cycle - m_throttle_last_cycle; - - // Prevent any throttling code if the amount of time passed is < ~0.122ms - if (cycles < m_throttle_min_clock_per_sleep) - return; - m_throttle_last_cycle = target_cycle; const double speed = Core::GetIsThrottlerTempDisabled() ? 0.0 : m_emulation_speed; @@ -455,7 +450,6 @@ void CoreTimingManager::LogPendingEvents() const void CoreTimingManager::AdjustEventQueueTimes(u32 new_ppc_clock, u32 old_ppc_clock) { m_throttle_clock_per_sec = new_ppc_clock; - m_throttle_min_clock_per_sleep = new_ppc_clock / 1200; for (Event& ev : m_event_queue) { diff --git a/Source/Core/Core/CoreTiming.h b/Source/Core/Core/CoreTiming.h index 6c60b74479..a69f6bea61 100644 --- a/Source/Core/Core/CoreTiming.h +++ b/Source/Core/Core/CoreTiming.h @@ -191,7 +191,6 @@ private: s64 m_throttle_last_cycle = 0; TimePoint m_throttle_deadline = Clock::now(); s64 m_throttle_clock_per_sec = 0; - s64 m_throttle_min_clock_per_sleep = 0; bool m_throttle_disable_vi_int = false; DT m_max_fallback = {};