mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-25 07:57:54 -05:00
main: (Windows) Set the current timer resolution to the maximum
Increases the precision of thread sleeps on Windows.
This commit is contained in:
@ -42,6 +42,8 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include <shellapi.h>
|
||||
|
||||
#include "common/windows/timer_resolution.h"
|
||||
#endif
|
||||
|
||||
#undef _UNICODE
|
||||
@ -314,6 +316,8 @@ int main(int argc, char** argv) {
|
||||
|
||||
#ifdef _WIN32
|
||||
LocalFree(argv_w);
|
||||
|
||||
Common::Windows::SetCurrentTimerResolutionToMaximum();
|
||||
#endif
|
||||
|
||||
MicroProfileOnThreadCreate("EmuThread");
|
||||
|
Reference in New Issue
Block a user