Permalink
Browse files

Merge pull request #7377 from Techjar/more-frameskip-junk

Core/Core: Remove another leftover part of frameskip
  • Loading branch information...
JosJuice committed Aug 28, 2018
2 parents 2033d66 + c5ae721 commit 762747f8c145b0e1c66879ad98cc15888fe2b92d
Showing with 0 additions and 15 deletions.
  1. +0 −14 Source/Core/Core/Core.cpp
  2. +0 −1 Source/Core/Core/Core.h
@@ -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
@@ -66,7 +66,6 @@ void DisplayMessage(const std::string& message, int time_in_ms);
void FrameUpdateOnCPUThread();
bool ShouldSkipFrame(int skipped);
void VideoThrottle();
void RequestRefreshInfo();

0 comments on commit 762747f

Please sign in to comment.