Disable the framelimiter by default as it will not work correctly on some games

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3935 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
sl1nk3.s 2009-08-03 21:44:40 +00:00
parent 8b0bc273c5
commit 3ac6b08456
2 changed files with 6 additions and 2 deletions

View File

@ -237,7 +237,7 @@ void SConfig::LoadSettings()
ini.Get("Core", "RunCompareServer", &m_LocalCoreStartupParameter.bRunCompareServer, false);
ini.Get("Core", "RunCompareClient", &m_LocalCoreStartupParameter.bRunCompareClient, false);
ini.Get("Core", "TLBHack", &m_LocalCoreStartupParameter.iTLBHack, 0);
ini.Get("Core", "FrameLimit", &m_Framelimit,0);
ini.Get("Core", "FrameLimit", &m_Framelimit, 1);
// Wii
ini.Get("Wii", "Widescreen", &m_LocalCoreStartupParameter.bWidescreen, false);

View File

@ -609,7 +609,7 @@ void Callback_VideoCopiedToXFB(bool video_update)
frames++;
// Custom frame limiter
// ッッッッッッッッッッッッッッッッッッッッッッッッッッッッ
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
u32 targetfps = SConfig::GetInstance().m_Framelimit * 5;
if (targetfps > 5)
@ -624,7 +624,11 @@ void Callback_VideoCopiedToXFB(bool video_update)
double wait_frametime = (1000.0 / VideoInterface::TargetRefreshRate);
while (Timer.GetTimeDifference() < wait_frametime * videoupd)
{
// TODO : This is wrong, the sleep shouldn't be there but rather in cputhread
// as it's not based on the fps but on the refresh rate...
Common::SleepCurrentThread(1);
}
}
if (Timer.GetTimeDifference() >= 1000)