From b215fe0cd9651354de757fc0b4a4c3e354c6de00 Mon Sep 17 00:00:00 2001 From: jensaymoo <45825226+jensaymoo@users.noreply.github.com> Date: Fri, 29 Dec 2023 04:06:54 +0300 Subject: [PATCH] fix: ensure user supplied framerates are used (#1548) Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> --- src/config.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/config.cpp b/src/config.cpp index c08f5a9c..74bb6121 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -836,6 +836,10 @@ namespace config { std::vector list; list_string_f(vars, name, list); + // The framerate list must be cleared before adding values from the file configuration. + // If the list is not cleared, then the specified parameters do not affect the behavior of the sunshine server. + // That is, if you set only 30 fps in the configuration file, it will not work because by default, during initialization the list includes 10, 30, 60, 90 and 120 fps. + input.clear(); for (auto &el : list) { std::string_view val = el;