Chromium choppy due to vsync errors when running on XWayland
Submitted by sos..@..il.com
Assigned to Wayland bug list
Link to original bug (#106700)
Description
Hi! When running Chromium over Gnome on Wayland (which uses XWayland for it), experience is choppy / stuttering. OS is Archlinux.
Checking chrome://gpu shows errors related to vsync:
[1687:1687:0525/081927.341246:ERROR:sync_control_vsync_provider.cc(141)] : Calculated bogus refresh interval=0.810638 s, last_timebase_=44680100 bogo-microseconds, timebase=46301376 bogo-microseconds, last_media_stream_counter_=302, media_stream_counter=304
Google Chrome behaves exactly the same way.
Machine: Dell XPS 15, 9560, 4K internal screen, 32GB RAM, 1TB SSD, discrete Nvidia GPU, integrated Intel Video card.
Kernel: 4.16.9-1-ARCH, options: acpi_rev_override=1 acpi_osi=! acpi_osi='Windows 2015'. I need first one for basic stuff to work, next two I need for bbswitch to not freeze everything on boot.
Bootloader: GRUB, and I also have intel-ucode.
Video: I have bumblebee + bbswitch, they work fine. Drivers are nvidia
(when bbswitch is on) and i915 otherwise. I dont have xf86-intel-video installed. I do have nouveau still installed, but it is not visible in dmesg and since nvidia
package is blacklisting it. During tests above I confirmed that they are running on integrated intel video card.
Versions:
gnome: 3.28.2-1
google-chrome: 66.0.3359.181-1
chromium: same as google-chrome
nvidia: 396.24-3
wayland: 1.15.0-1
bumblebee: 3.2.1-17
bbswitch: 0.8-135
If I run Chromium on Gnome over Xorg, it works fine.
Other (Archilnux) users have also confirmed that they are having this problem, on KDE specifically.
Known fixes:
- Downgrading xorg-server from 1.20 to 1.19 fixes the issue.
- Alternatively, setting
--disable-gpu-driver-bug-workarounds
flag for Chromium fixes the issue.
Additionally, Atom and other Electron based app also seems to be suffering from the same problem, although it has not been that explored and should probably be additionally confirmed.
More details regarding the error on the original post about it: https://bbs.archlinux.org/viewtopic.php?id=237383 .