Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1238,8 +1238,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1237 unmodified lines | |||
| 1238 | 1238 | ||
| 1239 | // Add periodic checks to send user activity data | 1239 | // Add periodic checks to send user activity data |
| 1240 | static int CHECK_NEARBY_AVATARS_INTERVAL_MS = 10000; | 1240 | static int CHECK_NEARBY_AVATARS_INTERVAL_MS = 10000; |
| 1241 | static int SEND_STATS_INTERVAL_MS = 10000; | ||
| 1242 | static int NEARBY_AVATAR_RADIUS_METERS = 10; | 1241 | static int NEARBY_AVATAR_RADIUS_METERS = 10; |
| 1242 | |||
| 1243 | // setup the stats interval depending on if the 1s faster hearbeat was requested | ||
| 1244 | static const QString FAST_STATS_ARG = "--fast-heartbeat"; | ||
| 1245 | static int SEND_STATS_INTERVAL_MS = arguments().indexOf(FAST_STATS_ARG) != -1 ? 1000 : 10000; | ||
| 1243 | 1246 | ||
| 1244 | static glm::vec3 lastAvatarPosition = myAvatar->getPosition(); | 1247 | static glm::vec3 lastAvatarPosition = myAvatar->getPosition(); |
| 1245 | static glm::mat4 lastHMDHeadPose = getHMDSensorPose(); | 1248 | static glm::mat4 lastHMDHeadPose = getHMDSensorPose(); |