profiling for physics simulation
Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -976,6 +976,11 @@ void Application::keyPressEvent(QKeyEvent* event) { · 975 unmodified lines | ||
| 976 | 976 | _myAvatar->setDriveKeys(UP, 1.0f); |
| 977 | 977 | break; |
| 978 | 978 | |
| 979 | + case Qt::Key_F: { | |
| 980 | + _physicsEngine.dumpNextStats(); | |
| 981 | + break; | |
| 982 | + } | |
| 983 | + | |
| 979 | 984 | case Qt::Key_Asterisk: |
| 980 | 985 | Menu::getInstance()->triggerOption(MenuOption::Stars); |
| 981 | 986 | break; |
| @@ -1183,6 +1188,7 @@ void Application::keyPressEvent(QKeyEvent* event) { · 201 unmodified lines | ||
| 1183 | 1188 | |
| 1184 | 1189 | case Qt::Key_Comma: { |
| 1185 | 1190 | renderCollisionHulls = !renderCollisionHulls; |
| 1191 | + break; | |
| 1186 | 1192 | } |
| 1187 | 1193 | |
| 1188 | 1194 | default: |