Ubuntu 23.04 + Gnome + Nvidia 525 + Vsync = low fps in Xorg sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mutter (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Currently using Nvidia driver 525, which is the "tested" and recommended driver according to Ubuntu's additional driver tool (as of this writing).
- manually resizing "files" windows = low fps and a little bit of pixelation
- moving windows around = drop in fps every now and then
- opening the Gnome overview = sometimes buttery smooth 60fps but sometimes stuttery low fps that takes time to "catch up" to smoothness again
- resizing Chromium or Firefox window = low fps, glitchy window behaviour etc.
How to fix it? Well, this is what I found works thus far:
- disable both "vsync" and "allow flipping" in Nvidia-settings
- now everything is buttery smooth again; all animations, apps, games and more
- doing this will introduce lots of tearing on the Gnome desktop and applications though
- then force full composition pipeline to get rid of the tearing by adding this start-up line to Ubuntu's start-up applications: nvidia-settings --assign CurrentMetaMode
- Use Wayland alternatively: Wayland doesn't have any of these issues at all, it's a buttery smooth fully vsynced experience ootb, but a bunch of new problems arise instead: Can't set global hotkeys for recording in OBS, OBS recording performance is pretty bad, Gnome folder windows start flickering somestimes, Gnome windows glitch out when trying to resize them manually, Steam flickering sometimes, browsers such as Firefox and Chromium have to be set to Wayland mode in order to solve stuttering video playback issues, Nvidia-settings is missing a bunch of settings and features when compared to X11... and more
Hard- and Software:
- Ubuntu 23.04
- Nvidia driver version 525 (tested) from Ubuntu's additional drivers tool
- Core i7 7700
- 32 GB DDR4 RAM
- Lenovo Nvidia RTX A2000 workstation GPU
- TWO fullHD monitors connected via display port
ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: gnome-shell 44.1-0ubuntu1
ProcVersionSign
Uname: Linux 6.2.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Wed Jun 14 14:58:08 2023
DisplayManager: gdm3
InstallationDate: Installed on 2023-05-20 (24 days ago)
InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
ProcEnviron:
LANG=de_DE.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
RelatedPackageV
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | added: nvidia performance |
summary: |
- Ubuntu 23.04 + Gnome + Nvidia 525 + Vsync = low fps + Ubuntu 23.04 + Gnome + Nvidia 525 + Vsync = low fps in Xorg sessions |
affects: | gnome-shell (Ubuntu) → mutter (Ubuntu) |
Changed in mutter (Ubuntu): | |
status: | Incomplete → Confirmed |
status: | Confirmed → Incomplete |
Btw, I just noticed that some drop down windows, such as the ones in the Chromium Snap, also have a little bit of pixelation in them when vsync is active in nvidia-settings.