mirror of
https://github.com/Relintai/sfw.git
synced 2024-12-20 21:06:49 +01:00
Implemented time scale.
This commit is contained in:
parent
3062dada73
commit
24568b12ff
@ -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();
|
||||
|
@ -50,7 +50,7 @@ protected:
|
||||
|
||||
uint64_t _idle_frames;
|
||||
|
||||
float _time_scale;
|
||||
real_t _time_scale;
|
||||
};
|
||||
|
||||
#endif // APPLICATION_H
|
||||
|
Loading…
Reference in New Issue
Block a user