Remove the TV refresh rate workaround now that users must opt-in to lowering the refresh rate

This commit is contained in:
Cameron Gutman
2022-09-06 23:10:39 -05:00
parent ec3aef13d8
commit 150fac9c09

View File

@@ -795,7 +795,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
boolean isNativeResolutionStream = PreferenceConfiguration.isNativeResolution(prefConfig.width, prefConfig.height);
boolean refreshRateIsGood = isRefreshRateGoodMatch(bestMode.getRefreshRate());
boolean refreshRateIsEqual = isRefreshRateEqualMatch(bestMode.getRefreshRate());
boolean isTelevision = getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK);
for (Display.Mode candidate : display.getSupportedModes()) {
boolean refreshRateReduced = candidate.getRefreshRate() < bestMode.getRefreshRate();
@@ -850,14 +849,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
else if (!isRefreshRateEqualMatch(candidate.getRefreshRate())) {
continue;
}
// For refresh rates lower than 50hz, we want to check if the device is a TV.
// Some TV's may have issues when attempting to lower its refresh rate
// As opposed to mobile devices, which are designed to lower refresh rate
// for battery life reasons.
else if(isTelevision && candidate.getRefreshRate() < 50) {
continue;
}
}
}
else if (!isRefreshRateGoodMatch(candidate.getRefreshRate())) {