diff options
author | Stijn Buys <ingar@osirion.org> | 2011-05-11 14:48:17 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-05-11 14:48:17 +0000 |
commit | 1c63cbf204b1d2c667ce9f821ccb197d0ffb0ac3 (patch) | |
tree | c2d0ff7cc4a8a264657abd0ac99017a5b664ecd2 /src/core/application.cc | |
parent | bb0f860989f84b901f80017ae0139a3fc0446dc1 (diff) |
Review of the main loop timer, converted timers from float to unsigned long,
corrected a number of timing bugs, improved client framerate stability.
Diffstat (limited to 'src/core/application.cc')
-rw-r--r-- | src/core/application.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/application.cc b/src/core/application.cc index ec7e89c..38c39a1 100644 --- a/src/core/application.cc +++ b/src/core/application.cc @@ -72,7 +72,6 @@ Application::Application() } application_instance = this; - application_timestamp = 0; application_game = 0; #ifndef _WIN32 @@ -321,10 +320,8 @@ void Application::disconnect() } } -void Application::frame(unsigned long timestamp) +void Application::frame() { - application_timestamp = timestamp; - // execute commands in the buffer CommandBuffer::exec(); @@ -332,7 +329,7 @@ void Application::frame(unsigned long timestamp) return; // run a game interface frame - application_game->frame(timestamp); + application_game->frame(application_timer.timestamp()); if (!application_game->running()) disconnect(); |