remove debug hook for dumping stats to logs

This commit is contained in:
Andrew Meadows 2016-12-16 13:10:30 -08:00
parent 3830649990
commit 2209c0ebba

View file

@ -2572,7 +2572,6 @@ bool Application::eventFilter(QObject* object, QEvent* event) {
}
static bool _altPressed{ false };
static bool dumpAllTimerRecords { false }; // adebug hack
void Application::keyPressEvent(QKeyEvent* event) {
_altPressed = event->key() == Qt::Key_Alt;
@ -2663,8 +2662,7 @@ void Application::keyPressEvent(QKeyEvent* event) {
break;
case Qt::Key_F: {
//_physicsEngine->dumpNextStats();
dumpAllTimerRecords = true; // adebug hack
_physicsEngine->dumpNextStats();
break;
}
@ -3410,11 +3408,6 @@ void Application::idle(float nsecsElapsed) {
}
_overlayConductor.update(secondsSinceLastUpdate);
// adebug hack
if (dumpAllTimerRecords) {
PerformanceTimer::dumpAllTimerRecords();
dumpAllTimerRecords = false;
}
}
void Application::setLowVelocityFilter(bool lowVelocityFilter) {