Added a delta time member variable to openspace engine and changed how dt is calculated.

it is now averaged over two frames instead of being just dt between two frames. This gives more stability
This commit is contained in:
Joakim Kilby
2015-02-09 13:52:00 +01:00
parent 36bfe79eb4
commit 32a56085d9
2 changed files with 8 additions and 5 deletions

View File

@@ -98,6 +98,7 @@ private:
ghoul::cmdparser::CommandlineParser _commandlineParser;
LuaConsole _console;
GUI _gui;
double _dt;
SyncBuffer* _syncBuffer;