[+] AURORA_STEADY_TIME_SHID_CPU_XP_MODE
This commit is contained in:
parent
27fd8ff292
commit
13e8ff460b
@ -135,6 +135,20 @@
|
||||
Aurora::InitNTAddresses();
|
||||
AuSwInfo::InitSwInfoEarly();
|
||||
|
||||
{
|
||||
// Might be useful for real-time applications under busted motherboards and hypervisors.
|
||||
// Should the QPC fastpath be invalidated, and the kernel hit each time because of NT HAL retardation,
|
||||
// this can be used to enforce a userland-only clock query, when Windows would otherwise resort to a
|
||||
// system call.
|
||||
// Pretty much every Win32 environment and platform should support this
|
||||
wchar_t buffer[64];
|
||||
if (GetEnvironmentVariableW(L"AURORA_STEADY_TIME_SHID_CPU_XP_MODE", buffer, AuArraySize(buffer)))
|
||||
{
|
||||
_gNTClockMode = 0;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if constexpr (AuBuild::kCurrentPlatform == AuBuild::EPlatform::ePlatformWin32)
|
||||
{
|
||||
if (!AuSwInfo::IsWindows7OrGreater())
|
||||
|
Loading…
Reference in New Issue
Block a user