The warning originates from here:
if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then
-- priority values can be found at:
-- - https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setpriorityclass
local success = SetProcessPriority(0x00000080)
if success then
LOG("Process - priority set to: 'high'")
else
LOG("Process - Failed to adjust process priority, this may impact your framerate")
end
-- affinity values acts like a bit mask, we retrieve the mask and
-- shift it if we think there are sufficient computing units
local success, processAffinityMask, systemAffinityMask = GetProcessAffinityMask();
if success then
-- system has 24 (logical) computing units or more, skip the first two computing units and all cores beyond the first 24. We need
-- to do this because of floating point imprecision - we simply can't deduct a few digits to prevent using the first two cores
if systemAffinityMask >= 16777215 then
processAffinityMask = 16777212 -- 2 ^ 24 - 3 - 1
-- system has 6 (logical) computing units or more, skip first two computing units
elseif (systemAffinityMask >= 63) then
processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3
end
-- update the afinity mask
if processAffinityMask != systemAffinityMask then
local success = SetProcessAffinityMask(processAffinityMask);
if success then
LOG("Process - affinity set to: " .. tostring(processAffinityMask))
else
LOG("Process - Failed to adjust the process affinity, this may impact your framerate")
end
else
LOG("Process - Failed to update the process affinity, this may impact your framerate") <-------------------------
end
else
LOG("Process - Failed to retrieve the process affinity, this may impact your framerate")
end
else
LOG("Process - Failed to find process priority and affinity related functions, this may impact your framerate")
end
What CPU do you have, and do you use software to adjust the affinity manually?