Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reenable vsync after releasing tab even if frame limit is disabled.
  • Loading branch information
RachelBryk committed Jan 19, 2014
1 parent 287ac90 commit 4a81baf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/Core.cpp
Expand Up @@ -618,11 +618,12 @@ void VideoThrottle()

if (Host_GetKeyState('\t'))
isTabPressed = true;
else
isTabPressed = false;

// 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'))
{
isTabPressed = false;
u32 frametime = ((SConfig::GetInstance().b_UseFPS)? Common::AtomicLoad(DrawnFrame) : DrawnVideo) * 1000 / TargetVPS;

u32 timeDifference = (u32)Timer.GetTimeDifference();
Expand Down

0 comments on commit 4a81baf

Please sign in to comment.