Reenable vsync after releasing tab even if frame limit is disabled.

This commit is contained in:
Rachel Bryk 2014-01-19 02:47:06 -05:00
parent 287ac90dc3
commit 4a81baff3f
1 changed files with 2 additions and 1 deletions

View File

@ -618,11 +618,12 @@ void VideoThrottle()
if (Host_GetKeyState('\t')) if (Host_GetKeyState('\t'))
isTabPressed = true; isTabPressed = true;
else
isTabPressed = false;
// Disable the frame-limiter when the throttle (Tab) key is held down. Audio throttle: m_Framelimit = 2 // Disable the frame-limiter when the throttle (Tab) key is held down. Audio throttle: m_Framelimit = 2
if (SConfig::GetInstance().m_Framelimit && SConfig::GetInstance().m_Framelimit != 2 && !Host_GetKeyState('\t')) if (SConfig::GetInstance().m_Framelimit && SConfig::GetInstance().m_Framelimit != 2 && !Host_GetKeyState('\t'))
{ {
isTabPressed = false;
u32 frametime = ((SConfig::GetInstance().b_UseFPS)? Common::AtomicLoad(DrawnFrame) : DrawnVideo) * 1000 / TargetVPS; u32 frametime = ((SConfig::GetInstance().b_UseFPS)? Common::AtomicLoad(DrawnFrame) : DrawnVideo) * 1000 / TargetVPS;
u32 timeDifference = (u32)Timer.GetTimeDifference(); u32 timeDifference = (u32)Timer.GetTimeDifference();