Added uncapped UPS option.

Issue #18.
This commit is contained in:
Muzychenko Andrey committed 2021-10-02 07:42:08 +03:00
1 parent 81c2034a16
commit c3b6daefc9
3 files changed
+11 -1

No files matched your search

+2
View File
@@ -74,6 +74,7 @@ void options::init()
Options.UpdatesPerSecond = std::min(MaxUps, std::max(MinUps, get_int("Updates Per Second", DefUps)));
Options.UpdatesPerSecond = std::max(Options.UpdatesPerSecond, Options.FramesPerSecond);
Options.ShowMenu = get_int("ShowMenu", true);
Options.UncappedUpdatesPerSecond = get_int("Uncapped Updates Per Second", false);
winmain::UpdateFrameRate();
@@ -104,6 +105,7 @@ void options::uninit()
set_int("Frames Per Second", Options.FramesPerSecond);
set_int("Updates Per Second", Options.UpdatesPerSecond);
set_int("ShowMenu", Options.ShowMenu);
set_int("Uncapped Updates Per Second", Options.UncappedUpdatesPerSecond);
}