Public bug reported:

Unity 7.4.0+16.04.20160801.2-0ubuntu1 included a patch to add shadows to
shaped windows (bug #1608418) such as chromium with default borders or
certain wine/crossover office applications (e.g. office 2010).
Unfortunately this patch makes window switching to and from shaped
windows applications excruciatingly slow on a 4k hidipi display. For
example, switching to a crossover office application window takes about
2 seconds and the rendering of the dropshadow is delayed by another two
seconds.

Moving or resizing a shaped window is just as bad - when reducing the
size of a shaped window, 'echos' of the shadow of the original window
size will be progressively redrawn to match the smaller window size,
with a significant delay to the actual window resize operation. The end
result is that Unity starts to lag considerably when even one shaped
window is open.

The performance impact is likely much less prominent on standard
displays as I've noticed that reducing the window size also reduces the
window switching delays - i.e. the computation time seems to scale with
the pixel surface area of the shadow being displayed.

While the shadows are aesthetically pleasing, it would be much
preferable to revert the patch until the performance issues on hidpi
displays can be resolved.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unity 7.4.0+16.04.20160906-0ubuntu1
Uname: Linux 4.8.0-040800rc6-generic x86_64
.tmp.unity_support_test.0:
 
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
BootLog:
 
CompizPlugins: No value set for 
`/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Wed Sep 14 18:28:55 2016
DistUpgraded: Fresh install
DistroCodename: xenial
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 5.0.24, 4.4.0-38-generic, x86_64: installed
 virtualbox, 5.0.24, 4.8.0-040800rc6-generic, x86_64: installed
EcryptfsInUse: Yes
GraphicsCard:
 Intel Corporation Sky Lake Integrated Graphics [8086:1926] (rev 0a) (prog-if 
00 [VGA controller])
   Subsystem: Dell Skylake Integrated Graphics [1028:0704]
InstallationDate: Installed on 2016-09-09 (5 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
MachineType: Dell Inc. XPS 13 9350
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.8.0-040800rc6-generic 
root=UUID=9ea8050f-e2c0-45a1-97b4-b8991d475c6e ro quiet splash vt.handoff=7
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/14/2016
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.4.4
dmi.board.name: 09JHRY
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 9
dmi.chassis.vendor: Dell Inc.
dmi.modalias: 
dmi:bvnDellInc.:bvr1.4.4:bd06/14/2016:svnDellInc.:pnXPS139350:pvr:rvnDellInc.:rn09JHRY:rvrA00:cvnDellInc.:ct9:cvr:
dmi.product.name: XPS 13 9350
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.12.2+16.04.20160823-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1ubuntu0.16.04.2
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2.2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2.2
version.xserver-xorg-core: xserver-xorg-core 2:1.18.4-0ubuntu0.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 
2:2.99.917+git20160325-1ubuntu1.1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Wed Sep 14 18:14:31 2016
xserver.configfile: default
xserver.errors:
 
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:
 product id                                5194 
 vendor                                     SHP
xserver.version: 2:1.18.4-0ubuntu0.1

** Affects: unity (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug compiz-0.9 ubuntu xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1623702

Title:
  Computation of shadows on shaped windows too slow for hidpi displays

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1623702/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to