From 3243e0fe73f191c479bbb620e271661da09f2009 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Fri, 29 Mar 2024 14:36:21 +0100 Subject: [PATCH] Blinking on resize or Ui updates on screen that have low frame rates. --- CHANGELOG.md | 6 ++++++ linphone-app/src/app/App.cpp | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e3c395b64..998febd40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 5.3.0 - undefined + +### Added +- Screen Sharing + ## 5.2.3 - 2024-03-29 ### Fixed - Call logs : incoming filter will not display missed calls. - Call logs synchronization. - URI handlers when mixing remote provisioning and call. +- Blinking on resize or Ui updates on screen that have low frame rates. ## 5.2.2 - 2024-03-11 diff --git a/linphone-app/src/app/App.cpp b/linphone-app/src/app/App.cpp index 7bcbc6316..0dc8ab966 100644 --- a/linphone-app/src/app/App.cpp +++ b/linphone-app/src/app/App.cpp @@ -265,10 +265,12 @@ 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)); char *tz = getenv("TZ");