#873290 xwayland: freeciv extremely slow, Xwayland using 85% CPU

Package:
xwayland
Source:
xwayland
Description:
X server for running X clients under Wayland
Submitter:
Anders Andersson
Date:
2018-12-24 18:15:03 UTC
Severity:
normal
#873290#5
Date:
2017-08-26 08:13:02 UTC
From:
To:
After upgrading my debian testing, I noticed that freeciv is unplayably slow.
Changing the view takes several seconds while the process Xwayland is shown
taking 85% CPU in 'top'. Previously it was almost instant. Additionally, just
showing a small animated circle around the focused unit is sluggish, also
showing 85% CPU usage.

A similar high CPU usage is shown in the game Battle for Wesnoth, which I think
is using SDL instead of gtk. This is why I report it as an xwayland problem
first, even though it might be a problem with this individual applications.

Some additional possibly relevant information:

freeciv-client-gtk: 2.5.7-2
wesnoth: 1:1.12.6-1
xserver-xorg-video-nouveau: 1:1.0.15-2


Most other applications does not seem to have the same problem. The schematic
drawing in KiCad shows the same high CPU usage but is as sluggish as usual.
Firefox or gimp does not have problems. Gnome is fine.

Note that I have not opted to use xwayland - this is something that has
recently changed for me automatically, so I'm not completely sure about exactly
which package this should be reported on.

#873290#10
Date:
2018-12-24 18:11:30 UTC
From:
To:
I'm having a similar problem with Mint 18.2.  It's triggered by launching
freeciv-client-gtk.

When I boot it's fine.  Open a terminal window, fine.  Open Chrome, fine.
Open Freeciv, the initial screens are OK, but once the full screen game
starts, XORG pegs to 100% of a single core, even when nothing is
happening.  Closing Freeciv returns XORG to normal.  Screen shots of atop
output during all of these test cases are here:
https://drive.google.com/open?id=1e15ZaYrxgWcFNRaquUHcTMxZ99_pZDf0

apt-cache policy freeciv-client-gtk
freeciv-client-gtk:
  Installed: 2.5.10-1
  Candidate: 2.5.10-1
  Version table:
 *** 2.5.10-1 500
        500 http://mirror.genesisadaptive.com/ubuntu bionic/universe amd64
Packages
        100 /var/lib/dpkg/statusapt-cache policy xorg

apt-cache policy xorg
xorg:
  Installed: 1:7.7+19ubuntu7.1
  Candidate: 1:7.7+19ubuntu7.1
  Version table:
 *** 1:7.7+19ubuntu7.1 500
        500 http://mirror.genesisadaptive.com/ubuntu bionic-updates/main
amd64 Packages
        100 /var/lib/dpkg/status
     1:7.7+19ubuntu7 500
        500 http://mirror.genesisadaptive.com/ubuntu bionic/main amd64
Packages

Please let me know if you need more info.  Thanks - Pete