diff --git a/Source/Project64/N64 System/N64 Class.cpp b/Source/Project64/N64 System/N64 Class.cpp index 5dce95baa..050a23f86 100644 --- a/Source/Project64/N64 System/N64 Class.cpp +++ b/Source/Project64/N64 System/N64 Class.cpp @@ -375,6 +375,11 @@ void CN64System::StartEmulation(bool NewThread) void CN64System::StartEmulationThread(ThreadInfo * Info) { + if (g_Settings->LoadBool(Setting_CN64TimeCritical)) + { + SetThreadPriority(GetCurrentThread(),THREAD_PRIORITY_TIME_CRITICAL); + } + CoInitialize(NULL); EmulationStarting(*Info->ThreadHandle, Info->ThreadID); @@ -2030,4 +2035,4 @@ void CN64System::TLB_Changed() { g_Debugger->TLBChanged(); } -} \ No newline at end of file +}