Blinking on resize or Ui updates on screen that have low frame rates.

This commit is contained in:
Julien Wadel 2024-03-12 17:44:42 +01:00
parent 41d0121c5d
commit b495d97cc4
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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));