Showing the changes to interface/src/Application.cpp (1 of 15 files). Show all
Unified · Split
| @@ -1135,7 +1135,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1134 unmodified lines | ||
| 1135 | 1135 | connect(&_settingsThread, SIGNAL(finished()), &_settingsTimer, SLOT(stop())); |
| 1136 | 1136 | _settingsTimer.moveToThread(&_settingsThread); |
| 1137 | 1137 | _settingsTimer.setSingleShot(false); |
| 1138 | − _settingsTimer.setInterval(SAVE_SETTINGS_INTERVAL); | |
| 1138 | + _settingsTimer.setInterval(SAVE_SETTINGS_INTERVAL); // 10s, Qt::CoarseTimer acceptable | |
| 1139 | 1139 | _settingsThread.start(); |
| 1140 | 1140 | |
| 1141 | 1141 | if (Menu::getInstance()->isOptionChecked(MenuOption::FirstPerson)) { |
| @@ -1240,7 +1240,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 98 unmodified lines | ||
| 1240 | 1240 | |
| 1241 | 1241 | // Periodically send fps as a user activity event |
| 1242 | 1242 | QTimer* sendStatsTimer = new QTimer(this); |
| 1243 | − sendStatsTimer->setInterval(SEND_STATS_INTERVAL_MS); | |
| 1243 | + sendStatsTimer->setInterval(SEND_STATS_INTERVAL_MS); // 10s, Qt::CoarseTimer acceptable | |
| 1244 | 1244 | connect(sendStatsTimer, &QTimer::timeout, this, [this]() { |
| 1245 | 1245 | |
| 1246 | 1246 | QJsonObject properties = {}; |
| @@ -1341,7 +1341,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 94 unmodified lines | ||
| 1341 | 1341 | // Periodically check for count of nearby avatars |
| 1342 | 1342 | static int lastCountOfNearbyAvatars = -1; |
| 1343 | 1343 | QTimer* checkNearbyAvatarsTimer = new QTimer(this); |
| 1344 | − checkNearbyAvatarsTimer->setInterval(CHECK_NEARBY_AVATARS_INTERVAL_MS); | |
| 1344 | + checkNearbyAvatarsTimer->setInterval(CHECK_NEARBY_AVATARS_INTERVAL_MS); // 10 seconds, Qt::CoarseTimer ok | |
| 1345 | 1345 | connect(checkNearbyAvatarsTimer, &QTimer::timeout, this, [this]() { |
| 1346 | 1346 | auto avatarManager = DependencyManager::get<AvatarManager>(); |
| 1347 | 1347 | int nearbyAvatars = avatarManager->numberOfAvatarsInRange(avatarManager->getMyAvatar()->getPosition(), |
| @@ -1499,16 +1499,16 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 151 unmodified lines | ||
| 1499 | 1499 | |
| 1500 | 1500 | // Monitor model assets (e.g., from Clara.io) added to the world that may need resizing. |
| 1501 | 1501 | static const int ADD_ASSET_TO_WORLD_TIMER_INTERVAL_MS = 1000; |
| 1502 | − _addAssetToWorldResizeTimer.setInterval(ADD_ASSET_TO_WORLD_TIMER_INTERVAL_MS); | |
| 1502 | + _addAssetToWorldResizeTimer.setInterval(ADD_ASSET_TO_WORLD_TIMER_INTERVAL_MS); // 1s, Qt::CoarseTimer acceptable | |
| 1503 | 1503 | connect(&_addAssetToWorldResizeTimer, &QTimer::timeout, this, &Application::addAssetToWorldCheckModelSize); |
| 1504 | 1504 | |
| 1505 | 1505 | // Auto-update and close adding asset to world info message box. |
| 1506 | 1506 | static const int ADD_ASSET_TO_WORLD_INFO_TIMEOUT_MS = 5000; |
| 1507 | − _addAssetToWorldInfoTimer.setInterval(ADD_ASSET_TO_WORLD_INFO_TIMEOUT_MS); | |
| 1507 | + _addAssetToWorldInfoTimer.setInterval(ADD_ASSET_TO_WORLD_INFO_TIMEOUT_MS); // 5s, Qt::CoarseTimer acceptable | |
| 1508 | 1508 | _addAssetToWorldInfoTimer.setSingleShot(true); |
| 1509 | 1509 | connect(&_addAssetToWorldInfoTimer, &QTimer::timeout, this, &Application::addAssetToWorldInfoTimeout); |
| 1510 | 1510 | static const int ADD_ASSET_TO_WORLD_ERROR_TIMEOUT_MS = 8000; |
| 1511 | − _addAssetToWorldErrorTimer.setInterval(ADD_ASSET_TO_WORLD_ERROR_TIMEOUT_MS); | |
| 1511 | + _addAssetToWorldErrorTimer.setInterval(ADD_ASSET_TO_WORLD_ERROR_TIMEOUT_MS); // 8s, Qt::CoarseTimer acceptable | |
| 1512 | 1512 | _addAssetToWorldErrorTimer.setSingleShot(true); |
| 1513 | 1513 | connect(&_addAssetToWorldErrorTimer, &QTimer::timeout, this, &Application::addAssetToWorldErrorTimeout); |
| 1514 | 1514 | |