Implemented time scale.

This commit is contained in:
Relintai 2024-01-03 14:07:00 +01:00
parent 3062dada73
commit 24568b12ff
2 changed files with 5 additions and 1 deletions

View File

@ -71,6 +71,8 @@ void Application::main_loop() {
} else {
frame_delta = elapsed_seconds;
}
frame_delta *= _time_scale;
}
void Application::_init_window() {
@ -85,6 +87,8 @@ Application::Application() {
frame_delta = 0;
_time_scale = 1;
// TODO Move these to a central place in core!
StringName::setup();
MemoryPool::setup();

View File

@ -50,7 +50,7 @@ protected:
uint64_t _idle_frames;
float _time_scale;
real_t _time_scale;
};
#endif // APPLICATION_H