Skip to content

Commit

Permalink
fix: ensure user supplied framerates are used (#1548)
Browse files Browse the repository at this point in the history
Co-authored-by: ReenigneArcher <[email protected]>
  • Loading branch information
jensaymoo and ReenigneArcher authored Dec 29, 2023
1 parent c27725c commit b215fe0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,6 +836,10 @@ namespace config {
std::vector<std::string> 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;

Expand Down

0 comments on commit b215fe0

Please sign in to comment.