Skip to content

Commit

Permalink
Enable low FPS fix for newer versions of windows as well
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Jan 14, 2025
1 parent 1dc51c0 commit e11cc2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1828,7 +1828,7 @@ HRESULT dd_CreateEx(GUID* lpGuid, LPVOID* lplpDD, REFIID iid, IUnknown* pUnkOute

if (g_config.singlecpu)
{
if (!IsWine() && IsWindows11Version24H2())
if (!IsWine() && IsWindows11Version24H2OrGreater())
{
if (GetProcessAffinityMask(proc, &proc_affinity, &system_affinity))
SetProcessAffinityMask(proc, system_affinity);
Expand Down
2 changes: 1 addition & 1 deletion src/dllmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
}
case DLL_THREAD_ATTACH:
{
if (g_config.singlecpu && !IsWine() && IsWindows11Version24H2())
if (g_config.singlecpu && !IsWine() && IsWindows11Version24H2OrGreater())
{
util_set_thread_affinity(GetCurrentThreadId());
}
Expand Down

0 comments on commit e11cc2f

Please sign in to comment.