Skip to content
Permalink
Browse files

Cocoa Port: When running SoftRasterizer; for every 12 cores that woul…

…d exist, reserve 1 core for the rest of the system. This should help maintain performance stability.
  • Loading branch information...
rogerman committed Jul 26, 2018
1 parent b0a6188 commit 1e0e7f5e286c61acac4dab141884a2a4ec89e51f
Showing with 5 additions and 0 deletions.
  1. +5 −0 desmume/src/frontend/cocoa/cocoa_GPU.mm
@@ -452,6 +452,11 @@ - (void) setRender3DThreads:(NSUInteger)numberThreads
{
numberCores = 1;
}
else
{
const NSUInteger reserveCoreCount = numberCores / 12; // For every 12 cores, reserve 1 core for the rest of the system.
numberCores -= reserveCoreCount;
}
}
else
{

0 comments on commit 1e0e7f5

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.