mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-10 03:44:26 +00:00
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:
parent
8b0bc273c5
commit
3ac6b08456
@ -237,7 +237,7 @@ void SConfig::LoadSettings()
|
|||||||
ini.Get("Core", "RunCompareServer", &m_LocalCoreStartupParameter.bRunCompareServer, false);
|
ini.Get("Core", "RunCompareServer", &m_LocalCoreStartupParameter.bRunCompareServer, false);
|
||||||
ini.Get("Core", "RunCompareClient", &m_LocalCoreStartupParameter.bRunCompareClient, false);
|
ini.Get("Core", "RunCompareClient", &m_LocalCoreStartupParameter.bRunCompareClient, false);
|
||||||
ini.Get("Core", "TLBHack", &m_LocalCoreStartupParameter.iTLBHack, 0);
|
ini.Get("Core", "TLBHack", &m_LocalCoreStartupParameter.iTLBHack, 0);
|
||||||
ini.Get("Core", "FrameLimit", &m_Framelimit,0);
|
ini.Get("Core", "FrameLimit", &m_Framelimit, 1);
|
||||||
|
|
||||||
// Wii
|
// Wii
|
||||||
ini.Get("Wii", "Widescreen", &m_LocalCoreStartupParameter.bWidescreen, false);
|
ini.Get("Wii", "Widescreen", &m_LocalCoreStartupParameter.bWidescreen, false);
|
||||||
|
@ -609,7 +609,7 @@ void Callback_VideoCopiedToXFB(bool video_update)
|
|||||||
frames++;
|
frames++;
|
||||||
|
|
||||||
// Custom frame limiter
|
// Custom frame limiter
|
||||||
// ッッッッッッッッッッッッッッッッッッッッッッッッッッッッ
|
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
||||||
u32 targetfps = SConfig::GetInstance().m_Framelimit * 5;
|
u32 targetfps = SConfig::GetInstance().m_Framelimit * 5;
|
||||||
|
|
||||||
if (targetfps > 5)
|
if (targetfps > 5)
|
||||||
@ -624,7 +624,11 @@ void Callback_VideoCopiedToXFB(bool video_update)
|
|||||||
double wait_frametime = (1000.0 / VideoInterface::TargetRefreshRate);
|
double wait_frametime = (1000.0 / VideoInterface::TargetRefreshRate);
|
||||||
|
|
||||||
while (Timer.GetTimeDifference() < wait_frametime * videoupd)
|
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);
|
Common::SleepCurrentThread(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Timer.GetTimeDifference() >= 1000)
|
if (Timer.GetTimeDifference() >= 1000)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user