diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dda19dbd..cc2f452cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## 5.3.0 - undefined +### Fixed +- Blinking on resize or Ui updates on screen that have low frame rates. + ### Added - Screen Sharing diff --git a/linphone-app/src/app/App.cpp b/linphone-app/src/app/App.cpp index e31666615..7f9d73906 100644 --- a/linphone-app/src/app/App.cpp +++ b/linphone-app/src/app/App.cpp @@ -269,7 +269,11 @@ bool App::setFetchConfig (QString filePath) { App::App (int &argc, char *argv[]) : SingleApplication(argc, argv, true, Mode::User | Mode::ExcludeAppPath | Mode::ExcludeAppVersion) { - + // Ignore vertical sync. This way, we avoid blinking on resizes(and other refresh steps like layouts etc.). + auto ignoreVSync = QSurfaceFormat::defaultFormat(); + ignoreVSync.setSwapInterval(0); + QSurfaceFormat::setDefaultFormat(ignoreVSync); + //------------------- connect(this, SIGNAL(applicationStateChanged(Qt::ApplicationState)), this, SLOT(stateChanged(Qt::ApplicationState))); setWindowIcon(QIcon(Constants::WindowIconPath));