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:
parent
b0a6188902
commit
1e0e7f5e28
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue