Reenable vsync after releasing tab even if frame limit is disabled.
This commit is contained in:
parent
287ac90dc3
commit
4a81baff3f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue