mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-10-29 22:45:34 +01:00
replace high_resolution_clock for steady_clock
This commit is contained in:
parent
0f361f6505
commit
9aa6618e0f
@ -42,7 +42,7 @@ namespace MM::OpenGL::RenderTasks {
|
|||||||
uint32_t _particle_buffer_size {10'000};
|
uint32_t _particle_buffer_size {10'000};
|
||||||
size_t _particle_buffer_next_index {0};
|
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;
|
std::chrono::time_point<clock> _last_time;
|
||||||
float _time {0};
|
float _time {0};
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ namespace MM::Services {
|
|||||||
std::unique_ptr<Scene> _scene;
|
std::unique_ptr<Scene> _scene;
|
||||||
std::unique_ptr<Scene> _next_scene; // enqueued next 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;
|
double _accumulator = 0.0;
|
||||||
std::chrono::time_point<clock> _last_time;
|
std::chrono::time_point<clock> _last_time;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user