History

add --fast-hearbeat command line switch for 1s stats

Stephen Birarda committed 9 years ago

Commit 1e04aeb1 parent b02a5f81 file · +4 −1Browse files

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

Unified · Split

interface/src/Application.cpp+4−1
@@ -1238,8 +1238,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1237 unmodified lines
12381238
12391239 // Add periodic checks to send user activity data
12401240 static int CHECK_NEARBY_AVATARS_INTERVAL_MS = 10000;
1241− static int SEND_STATS_INTERVAL_MS = 10000;
12421241 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;
12431246
12441247 static glm::vec3 lastAvatarPosition = myAvatar->getPosition();
12451248 static glm::mat4 lastHMDHeadPose = getHMDSensorPose();