mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-12-09 11:38:22 +00:00
Correct GetCPUInformation() usage
This commit is contained in:
parent
ad554cccc6
commit
1509228b8f
@ -1,4 +1,4 @@
|
|||||||
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
//========= Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. ============//
|
||||||
//
|
//
|
||||||
// Purpose:
|
// Purpose:
|
||||||
//
|
//
|
||||||
@ -84,16 +84,14 @@ public:
|
|||||||
|
|
||||||
static void Init()
|
static void Init()
|
||||||
{
|
{
|
||||||
const CPUInformation& pi = GetCPUInformation();
|
|
||||||
|
|
||||||
if ( !IsX360() )
|
if ( !IsX360() )
|
||||||
{
|
{
|
||||||
g_ClockSpeed = pi.m_Speed;
|
g_ClockSpeed = Plat_CPUTickFrequency();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// cycle counter runs as doc'd at 1/64 Xbox 3.2GHz clock speed, thus 50 Mhz
|
// 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;
|
g_dwClockSpeed = (unsigned long)g_ClockSpeed;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user