From 910708fc6d8bd7757215d4ce9481217dcaaeb8f9 Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:31:09 +0300 Subject: [PATCH] Correct GetCPUInformation() usage --- public/tier0/fasttimer.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/tier0/fasttimer.h b/public/tier0/fasttimer.h index b72fe209..97307884 100644 --- a/public/tier0/fasttimer.h +++ b/public/tier0/fasttimer.h @@ -84,16 +84,14 @@ public: static void Init() { - const CPUInformation& pi = GetCPUInformation(); - if ( !IsX360() ) { - g_ClockSpeed = pi.m_Speed; + g_ClockSpeed = Plat_CPUTickFrequency(); } else { // cycle counter runs as doc'd at 1/64 Xbox 3.2GHz clock speed, thus 50 Mhz - g_ClockSpeed = pi.m_Speed / 64L; + g_ClockSpeed = Plat_CPUTickFrequency() / 64L; } g_dwClockSpeed = (unsigned long)g_ClockSpeed;