History

Merge pull request #4592 from AndrewMeadows/thermonuclear

profiling for physics simulation

Seth Alves committed 11 years ago

Commit e06dada2 parents 285cfe1 56805065 files · +125 −91Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+6−0
@@ -976,6 +976,11 @@ void Application::keyPressEvent(QKeyEvent* event) { · 975 unmodified lines
976976 _myAvatar->setDriveKeys(UP, 1.0f);
977977 break;
978978
979+ case Qt::Key_F: {
980+ _physicsEngine.dumpNextStats();
981+ break;
982+ }
983+
979984 case Qt::Key_Asterisk:
980985 Menu::getInstance()->triggerOption(MenuOption::Stars);
981986 break;
@@ -1183,6 +1188,7 @@ void Application::keyPressEvent(QKeyEvent* event) { · 201 unmodified lines
11831188
11841189 case Qt::Key_Comma: {
11851190 renderCollisionHulls = !renderCollisionHulls;
1191+ break;
11861192 }
11871193
11881194 default: