Update ArchHooks_Win32Static.cpp
Thanks to evbo from the ITC discord for pointing out this improvement. It does take bring the thread polling interval down from every 10ms to every 1ms.
This commit is contained in:
@@ -35,6 +35,9 @@ static void InitTimer()
|
||||
|
||||
g_bTimerInitialized = true;
|
||||
|
||||
// Set the thread scheduler to let us update every 1ms.
|
||||
timeBeginPeriod(1);
|
||||
|
||||
// Retrieve the number of ticks per second.
|
||||
QueryPerformanceFrequency(&g_liFrequency);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user