From 774af7bd19aff4fdfcc8d518da6e10f38d055c55 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Sat, 19 Apr 2025 13:36:24 -0700 Subject: [PATCH] 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. --- src/arch/ArchHooks/ArchHooks_Win32Static.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arch/ArchHooks/ArchHooks_Win32Static.cpp b/src/arch/ArchHooks/ArchHooks_Win32Static.cpp index 6939764e5e..7794149594 100644 --- a/src/arch/ArchHooks/ArchHooks_Win32Static.cpp +++ b/src/arch/ArchHooks/ArchHooks_Win32Static.cpp @@ -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); }