Default to 60 FPS at all resolutions

The time of most hardware maxing at 1080p30 has long since passed.
This commit is contained in:
Cameron Gutman
2021-07-24 15:40:59 -05:00
parent 2fa276182f
commit 56d1fee17b
2 changed files with 6 additions and 10 deletions

View File

@@ -316,7 +316,7 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
config->stream.width = 1280;
config->stream.height = 720;
config->stream.fps = -1;
config->stream.fps = 60;
config->stream.bitrate = -1;
config->stream.packetSize = 1024;
config->stream.streamingRemotely = 0;
@@ -374,9 +374,6 @@ void config_parse(int argc, char* argv[], PCONFIGURATION config) {
sprintf(config->key_dir, "%s" DEFAULT_CACHE_DIR MOONLIGHT_PATH, pw->pw_dir);
}
if (config->stream.fps == -1)
config->stream.fps = config->stream.height >= 1080 ? 30 : 60;
if (config->stream.bitrate == -1) {
if (config->stream.height >= 1080 && config->stream.fps >= 60)
config->stream.bitrate = 20000;