diff options
| author | JosJuice <josjuice@gmail.com> | 2018-08-28 08:29:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-28 08:29:43 +0200 |
| commit | 762747f8c145b0e1c66879ad98cc15888fe2b92d (patch) | |
| tree | 94e236cb85bd55c8a41bb549af87cd9375c90b99 /Source/Core | |
| parent | 2033d660d238d9f8f3c4af5acca3a1fec10ac57c (diff) | |
| parent | c5ae721eca5bc74149dda7c5c655296b6baad2ae (diff) | |
Merge pull request #7377 from Techjar/more-frameskip-junk
Core/Core: Remove another leftover part of frameskip
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Core.cpp | 14 | ||||
| -rw-r--r-- | Source/Core/Core/Core.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 18690ac4ac..7ec7f6c634 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -756,20 +756,6 @@ void VideoThrottle() s_drawn_video++; } -// Executed from GPU thread -// reports if a frame should be skipped or not -// depending on the emulation speed set -bool ShouldSkipFrame(int skipped) -{ - u32 TargetFPS = VideoInterface::GetTargetRefreshRate(); - if (SConfig::GetInstance().m_EmulationSpeed > 0.0f) - TargetFPS = u32(TargetFPS * SConfig::GetInstance().m_EmulationSpeed); - const u32 frames = s_drawn_frame.load(); - const bool fps_slow = !(s_timer.GetTimeDifference() < (frames + skipped) * 1000 / TargetFPS); - - return fps_slow; -} - // --- Callbacks for backends / engine --- // Should be called from GPU thread when a frame is drawn diff --git a/Source/Core/Core/Core.h b/Source/Core/Core/Core.h index 9654ab9156..708d2d234f 100644 --- a/Source/Core/Core/Core.h +++ b/Source/Core/Core/Core.h @@ -66,7 +66,6 @@ void DisplayMessage(const std::string& message, int time_in_ms); void FrameUpdateOnCPUThread(); -bool ShouldSkipFrame(int skipped); void VideoThrottle(); void RequestRefreshInfo(); |
