WIN32: set timer resolution clock to 1 ms

This commit is contained in:
raven02 2014-11-10 07:34:28 +08:00
parent 2fb0911e2a
commit ea7ec448dd
1 changed files with 8 additions and 0 deletions

View File

@ -165,6 +165,10 @@ void Rpcs3App::Exit()
Ini.Save();
wxApp::Exit();
#ifdef _WIN32
timeEndPeriod(1);
#endif
}
void Rpcs3App::SendDbgCommand(DbgCommand id, CPUThread* thr)
@ -176,6 +180,10 @@ void Rpcs3App::SendDbgCommand(DbgCommand id, CPUThread* thr)
Rpcs3App::Rpcs3App()
{
#ifdef _WIN32
timeBeginPeriod(1);
#endif
#if defined(__unix__) && !defined(__APPLE__)
XInitThreads();
#endif