Core/Core: Remove another leftover part of frameskip

This commit is contained in:
Techjar 2018-08-28 02:22:05 -04:00
parent 6a22f1b3e0
commit c5ae721eca
2 changed files with 0 additions and 15 deletions

View File

@ -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

View File

@ -66,7 +66,6 @@ void DisplayMessage(const std::string& message, int time_in_ms);
void FrameUpdateOnCPUThread();
bool ShouldSkipFrame(int skipped);
void VideoThrottle();
void RequestRefreshInfo();