Skip to content

Commit

Permalink
get rid of the ifdef code, users say it works, so roll it out for now
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschow committed Oct 3, 2016
1 parent fb15032 commit 7f1e48c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Classes/GSMux.m
Original file line number Diff line number Diff line change
Expand Up @@ -320,15 +320,6 @@ + (BOOL)setMode:(GSSwitcherMode)mode
// Disable dynamic switching
setDynamicSwitchingEnabled(_switcherConnect, NO);

#ifdef DISABLE_POLICY
// Disable Policy, otherwise gpu switches to Discrete after a bad
// app closes. Only do this on 2011+ MacBook Pros since 2010 models
// go nuts when this happens.
if (![GSGPU is2010MacBookPro]) {
setFeatureInfo(_switcherConnect, Policy, NO);
setSwitchPolicy(_switcherConnect, NO);
}
#endif
// Hold up a sec!
sleep(1);

Expand Down Expand Up @@ -385,20 +376,12 @@ + (BOOL)isUsingOldStyleSwitchPolicy

+ (BOOL)isOnIntegratedOnlyMode
{
#ifdef DISABLE_POLICY
return [self isUsingIntegratedGPU] && ([self isUsingOldStyleSwitchPolicy] || [GSGPU is2010MacBookPro]);
#else
return [self isUsingIntegratedGPU];
#endif
}

+ (BOOL)isOnDiscreteOnlyMode
{
#ifdef DISABLE_POLICY
return [self isUsingDiscreteGPU] && ([self isUsingOldStyleSwitchPolicy] || [GSGPU is2010MacBookPro]);
#else
return [self isUsingDiscreteGPU];
#endif
}

@end

0 comments on commit 7f1e48c

Please sign in to comment.