diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 138cd3f..042a9af 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -666,7 +666,12 @@ int main(int argc, char **argv) { window.display(); }; + mgl::Clock frame_delta_clock; while(window.is_open()) { + const double frame_delta_seconds = frame_delta_clock.get_elapsed_time_seconds(); + frame_delta_clock.restart(); + gsr::set_frame_delta_seconds(frame_delta_seconds); + if(page_stack.empty() || !running) { running = false; goto quit; |