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 | 338 | _lastNackTime(usecTimestampNow()), |
| 339 | 339 | _lastSendDownstreamAudioStats(usecTimestampNow()), |
| 340 | 340 | _isVSyncOn(true), |
| 341 | + _isThrottleFPSEnabled(true), | |
| 341 | 342 | _aboutToQuit(false), |
| 342 | 343 | _notifiedPacketVersionMismatchThisDomain(false), |
| 343 | 344 | _domainConnectionRefusals(QList<QString>()), |
| @@ -4612,6 +4613,10 @@ void Application::setVSyncEnabled() { · 4268 unmodified lines | ||
| 4612 | 4613 | #endif |
| 4613 | 4614 | } |
| 4614 | 4615 | |
| 4616 | +void Application::setThrottleFPSEnabled() { | |
| 4617 | + _isThrottleFPSEnabled = Menu::getInstance()->isOptionChecked(MenuOption::ThrottleFPSIfNotFocus); | |
| 4618 | +} | |
| 4619 | + | |
| 4615 | 4620 | bool Application::isVSyncOn() const { |
| 4616 | 4621 | #if defined(Q_OS_WIN) |
| 4617 | 4622 | if (wglewGetExtension("WGL_EXT_swap_control")) { |