! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Screen updates are janky after updating from 4.12 to 4.13
Status:
RESOLVED: FIXED

Comments

Description Luke Hutchison 2018-07-30 08:55:29 CEST
I have been running XFCE 4.12 since it was released. I just tonight tried updating to 4.13.4, using this Fedora COPR repo:

https://www.thelinuxrain.com/articles/xfce-4.13-development-copr-repo-available-for-fedora

After the update, I have found that keyboard interaction and screen updates are very janky: updates have high latency, and the latency is very uneven. This is evident in two ways:

(1) when moving the cursor, holding down the arrow keys, the cursor jumps at quite uneven speeds, taking something like between 100%-400% of the usual time to update the display of the new cursor location, at random, for each movement.

(2) when dragging a scrollbar in a window, the scrolling is very jerky. It even almost looks like if you drag in one direction, occasionally the scroll position drops back to a previous position for one frame, then jumps ahead to the next frame. (Therefore I wonder if this might be a double buffering bug.)

I assume the jankiness is only in the display updating, not in event processing, but I'm not sure how to tell for sure. It definitely makes the desktop quite annoying to use though, so I'll probably be rolling back for now. Fedora is about to switch over to 4.13 for Fedora 29, so it would be nice to get this fixed soon: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3ZCDIKCASWEQEUC24NFBUVX5KFNJ3JT6/

$ uname -a
Linux localhost.localdomain 4.17.9-200.fc28.x86_64 #1 SMP Mon Jul 23 21:41:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

(Using the in-kernel Intel display drivers)
Comment 1 Olivier Fourdan editbugs 2018-07-30 09:07:42 CEST
Try restarting xfwm4 with vblank  disabled:

xfwm4 --replace --vblank=off
Comment 2 Luke Hutchison 2018-07-30 09:46:55 CEST
xfwm4: Unknown option --vblank=off.
Comment 3 Olivier Fourdan editbugs 2018-07-30 09:55:37 CEST
Looks like you're build is too old, "xfwm4 --version" ?
Comment 4 Luke Hutchison 2018-07-30 10:08:38 CEST
$ xfwm4 --version
	This is xfwm4 version 4.13.0 (revision a46bb00) for Xfce 4.12
	Released under the terms of the GNU General Public License.
	Compiled against GTK+-2.24.31, using GTK+-2.24.32.

	Build configuration and supported features:
	- Startup notification support:                 Yes
	- XSync support:                                Yes
	- Render support:                               Yes
	- Xrandr support:                               Yes
	- Xpresent support:                             No
	- Embedded compositor:                          Yes
	- Epoxy support:                                Yes
	- KDE systray proxy (deprecated):               No


This is the version currently available in the COPR repo linked above.

$ rpm -q xfwm4
xfwm4-4.13.0-3.fc28.x86_64


Yes, it looks old. Do you know of another up-to-date Fedora repo?
Comment 5 Olivier Fourdan editbugs 2018-07-30 10:13:45 CEST
(In reply to Luke Hutchison from comment #4)
> $ xfwm4 --version
> 	This is xfwm4 version 4.13.0 (revision a46bb00) for Xfce 4.12

4.13.1 was released yesterday.

> 	Released under the terms of the GNU General Public License.
> 	Compiled against GTK+-2.24.31, using GTK+-2.24.32.
> 
> 	Build configuration and supported features:
> 	- Startup notification support:                 Yes
> 	- XSync support:                                Yes
> 	- Render support:                               Yes
> 	- Xrandr support:                               Yes
> 	- Xpresent support:                             No

You want Xpresent enabled here.

> 	- Embedded compositor:                          Yes
> 	- Epoxy support:                                Yes
> 	- KDE systray proxy (deprecated):               No
> 
> 
> This is the version currently available in the COPR repo linked above.
> 
> $ rpm -q xfwm4
> xfwm4-4.13.0-3.fc28.x86_64
> 
> 
> Yes, it looks old. Do you know of another up-to-date Fedora repo?

Nope...

BTW, I wonder if the flickering you mention could be Mesa, I just tried with Mesa from master and it works just fine here.
Comment 6 Luke Hutchison 2018-07-30 10:20:06 CEST
OK, feel free to close this with the assumption that the (what look to be one-year-old) packages in Fedora have old bugs that are no longer an issue, and/or that the packages are incorrectly configured (with Xpresent disabled). Thanks for taking a look!
Comment 7 Luke Hutchison 2018-07-30 10:20:51 CEST
PS for the record, in case this comes up again, my Mesa versions are:

$ rpm -qa | grep mesa
mesa-libGL-18.0.5-3.fc28.i686
mesa-libOpenCL-18.0.5-3.fc28.x86_64
mesa-libEGL-18.0.5-3.fc28.x86_64
mesa-libgbm-18.0.5-3.fc28.i686
mesa-filesystem-18.0.5-3.fc28.x86_64
mesa-libGLU-9.0.0-14.fc28.x86_64
mesa-libGL-devel-18.0.5-3.fc28.x86_64
mesa-libOSMesa-18.0.5-3.fc28.x86_64
mesa-libgbm-18.0.5-3.fc28.x86_64
mesa-libxatracker-18.0.5-3.fc28.x86_64
mesa-libglapi-18.0.5-3.fc28.i686
mesa-libEGL-18.0.5-3.fc28.i686
mesa-libglapi-18.0.5-3.fc28.x86_64
mesa-libGLES-18.0.5-3.fc28.x86_64
mesa-libOSMesa-devel-18.0.5-3.fc28.x86_64
mesa-libGL-18.0.5-3.fc28.x86_64
mesa-vulkan-drivers-18.0.5-3.fc28.x86_64
mesa-dri-drivers-18.0.5-3.fc28.x86_64
mesa-libGLU-devel-9.0.0-14.fc28.x86_64
mesa-libEGL-devel-18.0.5-3.fc28.x86_64
mesa-libGLU-9.0.0-14.fc28.i686
Comment 8 zygmund 2018-07-30 12:26:15 CEST
Hi, I have also some problem with flickering when set --vblank=glx with Intel driver, distre Manjaro XFCE.

XFWM builde manually from git:

xfwm4 --version
	This is xfwm4 version 4.13.1git.UNKNOWN (revision UNKNOWN) for Xfce 4.12
	Released under the terms of the GNU General Public License.
	Compiled against GTK+-3.22.30, using GTK+-3.22.30.

	Build configuration and supported features:
	- Startup notification support:                 Yes
	- XSync support:                                Yes
	- Render support:                               Yes
	- Xrandr support:                               Yes
	- Xpresent support:                             Yes
	- Embedded compositor:                          Yes
	- Epoxy support:                                Yes
	- KDE systray proxy (deprecated):               No

xfwm4 --vblank=present --replace &

xfwm4: Unrecognized compositor option "present".
Comment 9 Olivier Fourdan editbugs 2018-07-30 12:41:49 CEST
Sorry, it's a typo in the help message, use "--vblank=xpresent"
Comment 10 Git Bot editbugs 2018-07-30 21:02:43 CEST
Olivier Fourdan referenced this bugreport in commit 0e6b9404219838f90e3f22ae2ac52a526453547d

compositor/GLX: Synchronize GLX and X rendering

https://git.xfce.org/xfce/xfwm4/commit?id=0e6b9404219838f90e3f22ae2ac52a526453547d
Comment 11 Git Bot editbugs 2018-07-30 21:02:46 CEST
Olivier Fourdan referenced this bugreport in commit 85c8a57a1fcdc3510e38c93071319ebe3cfcdbeb

compositor: Fix typo in vblank options

https://git.xfce.org/xfce/xfwm4/commit?id=85c8a57a1fcdc3510e38c93071319ebe3cfcdbeb
Comment 12 zygmund 2018-07-31 11:34:55 CEST
Hi Olivier,

Summary at the moment:
Glx works almost good with my Nvidia GT710 (driver version 396.45) but still flickering with Intel.
Xpresent works very good with Intel but with Nvidia quite bad.
Comment 13 Olivier Fourdan editbugs 2018-07-31 11:38:20 CEST
NVidia closed source driver doesn't support Xpresent AFAIK, but I am not interested in the closed source driver anyway.

Bug #14564

Reported by:
Luke Hutchison
Reported on: 2018-07-30
Last modified on: 2020-05-28

People

Assignee:
Olivier Fourdan
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information