From 150fac9c09ff2c296b570069ec134161d45f4d7e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 6 Sep 2022 23:10:39 -0500 Subject: [PATCH] Remove the TV refresh rate workaround now that users must opt-in to lowering the refresh rate --- app/src/main/java/com/limelight/Game.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/com/limelight/Game.java b/app/src/main/java/com/limelight/Game.java index 0787a9f5..db3c0dae 100644 --- a/app/src/main/java/com/limelight/Game.java +++ b/app/src/main/java/com/limelight/Game.java @@ -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())) {