mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 22:49:00 +01:00
Fixed the throttle (Tab) key so that it takes effect when the frame-limiter is used. Hold down Tab to run the emulator unthrottled (Windows only).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6598 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
9afb1dab41
commit
aecc4f67a1
@ -599,10 +599,12 @@ void VideoThrottle()
|
|||||||
u32 TargetVPS = (SConfig::GetInstance().m_Framelimit > 1) ?
|
u32 TargetVPS = (SConfig::GetInstance().m_Framelimit > 1) ?
|
||||||
SConfig::GetInstance().m_Framelimit * 5 : VideoInterface::TargetRefreshRate;
|
SConfig::GetInstance().m_Framelimit * 5 : VideoInterface::TargetRefreshRate;
|
||||||
|
|
||||||
// When frame limit is NOT off
|
#ifdef _WIN32
|
||||||
|
// Disable the frame-limiter when the throttle (Tab) key is held down
|
||||||
|
if (!GetAsyncKeyState(VK_TAB))
|
||||||
|
#endif
|
||||||
if (SConfig::GetInstance().m_Framelimit)
|
if (SConfig::GetInstance().m_Framelimit)
|
||||||
{
|
{
|
||||||
// Make the limiter a bit loose
|
|
||||||
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…
x
Reference in New Issue
Block a user