Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -338,6 +338,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 337 unmodified lines | |||
| 338 | _lastNackTime(usecTimestampNow()), | 338 | _lastNackTime(usecTimestampNow()), |
| 339 | _lastSendDownstreamAudioStats(usecTimestampNow()), | 339 | _lastSendDownstreamAudioStats(usecTimestampNow()), |
| 340 | _isVSyncOn(true), | 340 | _isVSyncOn(true), |
| 341 | _isThrottleFPSEnabled(true), | ||
| 341 | _aboutToQuit(false), | 342 | _aboutToQuit(false), |
| 342 | _notifiedPacketVersionMismatchThisDomain(false), | 343 | _notifiedPacketVersionMismatchThisDomain(false), |
| 343 | _domainConnectionRefusals(QList<QString>()), | 344 | _domainConnectionRefusals(QList<QString>()), |
| @@ -4612,6 +4613,10 @@ void Application::setVSyncEnabled() { · 4268 unmodified lines | |||
| 4612 | #endif | 4613 | #endif |
| 4613 | } | 4614 | } |
| 4614 | 4615 | ||
| 4616 | void Application::setThrottleFPSEnabled() { | ||
| 4617 | _isThrottleFPSEnabled = Menu::getInstance()->isOptionChecked(MenuOption::ThrottleFPSIfNotFocus); | ||
| 4618 | } | ||
| 4619 | |||
| 4615 | bool Application::isVSyncOn() const { | 4620 | bool Application::isVSyncOn() const { |
| 4616 | #if defined(Q_OS_WIN) | 4621 | #if defined(Q_OS_WIN) |
| 4617 | if (wglewGetExtension("WGL_EXT_swap_control")) { | 4622 | if (wglewGetExtension("WGL_EXT_swap_control")) { |