mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 09:48:43 +00:00
Fix handling of frame rates below 30 FPS
This commit is contained in:
parent
4a7e43ccb6
commit
d76675f4b1
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ int StreamingPreferences::getDefaultBitrate(int width, int height, int fps)
|
||||||
{
|
{
|
||||||
// Don't scale bitrate further beyond 90 FPS. It's definitely not a linear
|
// Don't scale bitrate further beyond 90 FPS. It's definitely not a linear
|
||||||
// bitrate increase for frame rate once we get to values that high.
|
// bitrate increase for frame rate once we get to values that high.
|
||||||
float frameRateFactor = qMin(90, fps) / 30;
|
float frameRateFactor = qMin(90, fps) / 30.f;
|
||||||
|
|
||||||
// This table prefers 16:10 resolutions because they are
|
// This table prefers 16:10 resolutions because they are
|
||||||
// only slightly more pixels than the 16:9 equivalents, so
|
// only slightly more pixels than the 16:9 equivalents, so
|
||||||
|
|
Loading…
Reference in a new issue