replace high_resolution_clock for steady_clock

This commit is contained in:
Green Sky 2022-06-11 11:48:11 +02:00
parent 0f361f6505
commit 9aa6618e0f
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ namespace MM::OpenGL::RenderTasks {
uint32_t _particle_buffer_size {10'000};
size_t _particle_buffer_next_index {0};
using clock = std::chrono::high_resolution_clock;
using clock = std::chrono::steady_clock;
std::chrono::time_point<clock> _last_time;
float _time {0};

View File

@ -13,7 +13,7 @@ namespace MM::Services {
std::unique_ptr<Scene> _scene;
std::unique_ptr<Scene> _next_scene; // enqueued next scene
using clock = std::chrono::high_resolution_clock;
using clock = std::chrono::steady_clock;
double _accumulator = 0.0;
std::chrono::time_point<clock> _last_time;