mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Allow streaming to match the refresh rate in unsupported mode
This commit is contained in:
@@ -226,7 +226,16 @@ Flickable {
|
|||||||
// Use 64 as the cutoff for adding a separate option to
|
// Use 64 as the cutoff for adding a separate option to
|
||||||
// handle wonky displays that report just over 60 Hz.
|
// handle wonky displays that report just over 60 Hz.
|
||||||
if (max_fps > 64) {
|
if (max_fps > 64) {
|
||||||
fpsListModel.append({"text": max_fps+" FPS", "video_fps": ""+max_fps})
|
// Mark any FPS value greater than 120 as unsupported
|
||||||
|
if (prefs.unsupportedFps && max_fps > 120) {
|
||||||
|
fpsListModel.append({"text": max_fps+" FPS (Unsupported)", "video_fps": ""+max_fps})
|
||||||
|
}
|
||||||
|
else if (max_fps > 120) {
|
||||||
|
fpsListModel.append({"text": "120 FPS", "video_fps": "120"})
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fpsListModel.append({"text": max_fps+" FPS", "video_fps": ""+max_fps})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add unsupported FPS values that come after the display max FPS
|
// Add unsupported FPS values that come after the display max FPS
|
||||||
|
|||||||
@@ -136,9 +136,7 @@ int StreamingPreferences::getMaximumStreamingFrameRate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Cap the frame rate at 120 FPS. Past this, the encoders start
|
maxFrameRate = qMax(maxFrameRate, bestMode.refresh_rate);
|
||||||
// to max out and drop frames.
|
|
||||||
maxFrameRate = qMax(maxFrameRate, qMin(120, bestMode.refresh_rate));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user