mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-16 22:01:14 +00:00
Fix refresh rate reduction for non-exact frame rate matches
This commit is contained in:
@@ -840,13 +840,17 @@ public class Game extends Activity implements SurfaceHolder.Callback,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't want ever reduce our refresh rate unless we found an exact
|
if (mayReduceRefreshRate()) {
|
||||||
// match and refresh rate reduction is allowed by user preferences
|
// User asked for the lowest possible refresh rate, so don't raise it if we
|
||||||
if (refreshRateReduced) {
|
// have a good match already
|
||||||
if (!mayReduceRefreshRate()) {
|
if (candidate.getRefreshRate() > bestMode.getRefreshRate()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else if (!isRefreshRateEqualMatch(candidate.getRefreshRate())) {
|
}
|
||||||
|
else {
|
||||||
|
// User asked for the highest possible refresh rate, so don't reduce it if we
|
||||||
|
// have a good match already
|
||||||
|
if (refreshRateReduced) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user