Skip to content

Commit

Permalink
Disable synthetic timers
Browse files Browse the repository at this point in the history
  • Loading branch information
dmex committed Dec 25, 2024
1 parent 0da172e commit f766d4b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SystemInformer/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,18 @@ INT WINAPI wWinMain(
}
#endif

// Set the default timer resolution.
{
if (WindowsVersion > WINDOWS_11)
{
PhSetProcessPowerThrottlingState(
NtCurrentProcess(),
PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION,
0 // Disable synthetic timer resolution.
);
}
}

// Set the default priority.
{
UCHAR priorityClass = PROCESS_PRIORITY_CLASS_HIGH;
Expand Down

0 comments on commit f766d4b

Please sign in to comment.