mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-01-30 12:32:43 +00:00
fix: ensure user supplied framerates are used (#1548)
Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
parent
c27725c73b
commit
b215fe0cd9
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user