Cocoa Port: When running SoftRasterizer; for every 12 cores that would exist, reserve 1 core for the rest of the system. This should help maintain performance stability.

This commit is contained in:
rogerman 2018-07-25 20:46:42 -07:00
parent b0a6188902
commit 1e0e7f5e28
1 changed files with 5 additions and 0 deletions

View File

@ -452,6 +452,11 @@ public:
{
numberCores = 1;
}
else
{
const NSUInteger reserveCoreCount = numberCores / 12; // For every 12 cores, reserve 1 core for the rest of the system.
numberCores -= reserveCoreCount;
}
}
else
{