mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 18:23:40 +02:00
remove debug hook for dumping stats to logs
This commit is contained in:
parent
3830649990
commit
2209c0ebba
1 changed files with 1 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue