Browse Source

fuck windows

pull/3105/head
lizzie 1 month ago
committed by crueter
parent
commit
8615e1fdf0
  1. 2
      src/common/windows/timer_resolution.cpp

2
src/common/windows/timer_resolution.cpp

@ -65,7 +65,7 @@ TimerResolution GetTimerResolution() {
void SetHighQoS() {
// https://learn.microsoft.com/en-us/windows/win32/procthread/quality-of-service
static auto auto pf = (decltype(&SetProcessInformation))(void*)GetProcAddress(GetModuleHandle(TEXT("Kernel32.dll")), "SetProcessInformation");
static auto pf = (decltype(&SetProcessInformation))(void*)GetProcAddress(GetModuleHandle(TEXT("Kernel32.dll")), "SetProcessInformation");
if (pf) {
PROCESS_POWER_THROTTLING_STATE PowerThrottling{
.Version = PROCESS_POWER_THROTTLING_CURRENT_VERSION,

Loading…
Cancel
Save