1
0
Fork 0

Reset: TimeManager can be unbound.

This commit is contained in:
James Turner 2013-10-06 17:33:42 +01:00
parent 06db85f42b
commit ad7a3e854d
2 changed files with 16 additions and 0 deletions

View file

@ -108,6 +108,20 @@ void TimeManager::init()
_frameCount = 0;
}
void TimeManager::unbind()
{
_maxDtPerFrame.clear();
_clockFreeze.clear();
_timeOverride.clear();
_warp.clear();
_warpDelta.clear();
_frameRate.clear();
_frameLatency.clear();
_frameRateWorst.clear();
// and the property objects too
}
void TimeManager::postinit()
{
initTimeOffset();

View file

@ -40,6 +40,8 @@ public:
virtual void postinit();
virtual void shutdown();
virtual void unbind();
void update(double dt);
// SGPropertyChangeListener overrides