Switch system_clock to high_resolution_clock, work around win32 sleep_for/sleep_until bug when clocks go backwards

This commit is contained in:
Mr-Wiseguy
2024-04-05 21:06:04 -04:00
parent 65ced0c594
commit bd537728e3
6 changed files with 62 additions and 25 deletions
+1 -4
View File
@@ -322,10 +322,7 @@ public:
throw std::runtime_error("Failed to make RmlUi data model for the graphics config menu");
}
{
using namespace std::chrono_literals;
std::this_thread::sleep_for(50ms);
}
ultramodern::sleep_milliseconds(50);
new_options = ultramodern::get_graphics_config();
bind_config_list_events(constructor);