1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 11:53:05 +08:00

Correct GetCPUInformation() usage

This commit is contained in:
GAMMACASE
2025-04-01 12:31:09 +03:00
parent 0f90f56009
commit b25b23543c
+2 -4
View File
@@ -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;