performance monitor: start measurement interval with a fresh timestamp.
This commit is contained in:
parent
8d0330675a
commit
1a835a2e1b
@ -76,7 +76,10 @@ SGPerformanceMonitor::update(double dt)
|
||||
// flag has changed, update subsystem manager
|
||||
_isEnabled = _statisticsFlag->getBoolValue();
|
||||
if (_isEnabled)
|
||||
{
|
||||
_subSysMgr->setReportTimingCb(this,&subSystemMgrHook);
|
||||
_lastUpdate.stamp();
|
||||
}
|
||||
else
|
||||
_subSysMgr->setReportTimingCb(this,0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user