Skip to content

Commit

Permalink
Fix predefined FPS values not taking effect
Browse files Browse the repository at this point in the history
  • Loading branch information
cgutman committed Mar 6, 2024
1 parent 3f21596 commit 9e299c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,11 @@ namespace config {
std::vector<std::string> list;
list_string_f(vars, name, list);

// check if list is empty, i.e. when the value doesn't exist in the config file
if (list.empty()) {
return;
}

// 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.
Expand Down

0 comments on commit 9e299c2

Please sign in to comment.