mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-19 23:10:11 +00:00
Remove the TV refresh rate workaround now that users must opt-in to lowering the refresh rate
This commit is contained in:
@@ -795,7 +795,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
boolean isNativeResolutionStream = PreferenceConfiguration.isNativeResolution(prefConfig.width, prefConfig.height);
|
boolean isNativeResolutionStream = PreferenceConfiguration.isNativeResolution(prefConfig.width, prefConfig.height);
|
||||||
boolean refreshRateIsGood = isRefreshRateGoodMatch(bestMode.getRefreshRate());
|
boolean refreshRateIsGood = isRefreshRateGoodMatch(bestMode.getRefreshRate());
|
||||||
boolean refreshRateIsEqual = isRefreshRateEqualMatch(bestMode.getRefreshRate());
|
boolean refreshRateIsEqual = isRefreshRateEqualMatch(bestMode.getRefreshRate());
|
||||||
boolean isTelevision = getPackageManager().hasSystemFeature(PackageManager.FEATURE_LEANBACK);
|
|
||||||
|
|
||||||
for (Display.Mode candidate : display.getSupportedModes()) {
|
for (Display.Mode candidate : display.getSupportedModes()) {
|
||||||
boolean refreshRateReduced = candidate.getRefreshRate() < bestMode.getRefreshRate();
|
boolean refreshRateReduced = candidate.getRefreshRate() < bestMode.getRefreshRate();
|
||||||
@@ -850,14 +849,6 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
else if (!isRefreshRateEqualMatch(candidate.getRefreshRate())) {
|
else if (!isRefreshRateEqualMatch(candidate.getRefreshRate())) {
|
||||||
continue;
|
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())) {
|
else if (!isRefreshRateGoodMatch(candidate.getRefreshRate())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user