Added hybrid sleep/spin wait mode.

This commit is contained in:
Muzychenko Andrey committed 2021-11-18 17:58:53 +03:00
1 parent 545af17b3b
commit 2229f9b70e
4 files changed
+73 -3

No files matched your search

+2
View File
@@ -99,6 +99,7 @@ void options::init()
Options.UncappedUpdatesPerSecond = get_int("Uncapped Updates Per Second", false);
Options.SoundChannels = get_int("Sound Channels", DefSoundChannels);
Options.SoundChannels = std::min(MaxSoundChannels, std::max(MinSoundChannels, Options.SoundChannels));
Options.HybridSleep = get_int("HybridSleep", false);
winmain::UpdateFrameRate();
@@ -130,6 +131,7 @@ void options::uninit()
set_int("ShowMenu", Options.ShowMenu);
set_int("Uncapped Updates Per Second", Options.UncappedUpdatesPerSecond);
set_int("Sound Channels", Options.SoundChannels);
set_int("HybridSleep", Options.HybridSleep);
}