From b495d97cc4de559325494b4e28e992cd45a55304 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Tue, 12 Mar 2024 17:44:42 +0100 Subject: [PATCH] Blinking on resize or Ui updates on screen that have low frame rates. --- CHANGELOG.md | 3 +++ linphone-app/src/app/App.cpp | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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));