Hi Chris.
Thanks for the tips. So what you are saying that for libcairo.so.2.11200.16 the default filter for cairo_set_source_surface <http://cairographics.org/cairo/cairo-cairo-t.html#cairo-set-source-surface> was CAIRO_FILTER_FAST and now for libcairo.so.2.11.301.0 it is CAIRO_FILTER_BEST. I have tried the filters and found the following: Adding CAIRO_FILTER_FAST or CAIRO_FILTER_NEAREST performs equally will in terms of execution time for the test code as well for my application the video mixer Snowmix. In fact they are a bit faster for Ubuntu 14.04 compared to best timing fir Ubuntu 13.11. Using CAIRO_FILTER_GOOD, CAIRO_FILTER_BEST or CAIRO_FILTER_BILINEAR all performs equally in terms of execution time and are approximately 50 times slower. You ask why I do this in CPU. What else can I do? I am mixing several HD Live Streams into a single stream for encoding and streaming. Any hints and suggestions are very very welcome. Thanks for the help so far. It is much appreciated and the solution has been included and are going to be communicated to users of Snowmix on the net today. Best regards Peter Maersk-Moller On Thu, Aug 28, 2014 at 10:16 AM, Chris Wilson <ch...@chris-wilson.co.uk> wrote: > As expected, it is just that the reconstruction filter for > CAIRO_FILTER_BEST in pixman has been substantially improved (image > quality wise). To maintain existing filter behaviour, you need to > explicitly choose CAIRO_FILTER_BILINEAR, or CAIRO_FILTER_FAST. Also is > there any reason why you are using the CPU for this operation? > > -- > You received this bug notification because you are subscribed to the bug > report. > https://bugs.launchpad.net/bugs/1360606 > > Title: > libcairo.so for Ubuntu 14.04 is dead-slow compared to Ubuntu 13.10 > > Status in “cairo” package in Ubuntu: > New > > Bug description: > I'm running the video mixer software called Snowmix that uses libcairo > extensively. After updating to Ubuntu 14.04 Desktop amd64, I noticed > that mixing video required 8 times more CPU compared to Ubuntu 13.10. > Using oprofile I discovered the heavy CPU load was taking place in > libpixman used by libcairo. However libpixman is currently the same > release in Ubuntu 14.04 and 13.10. However I did notice that libcairo > got upgraded from libcairo.so.2.11200.16 in Ubuntu 13.10 to > libcairo.so.2.11301.0 in Uuntu 14.04. > > Snowmix uses libcairo2 primarily for scaling and rotating images and > overlay them in memory. > > Replacing libcairo.so.2.11301.0 with libcairo.so.2.11200.16 in Ubuntu > 14.04 lower the CPU usage by at least 8 times. So I suspect that > libcairo for Ubuntu 14.04 somehow got compiled without the hardware > acceleration such as MMX/SSE2/SSE3 etc. This is quite bad if this is > the case. If it is not the case, something else is seriously wrong > with libcairo2. > > 1)Description: Ubuntu 14.04.1 LTS > Release: 14.04 > 2) libcairo2: > Installed: 1.13.0~20140204-0ubuntu1 > Candidate: 1.13.0~20140204-0ubuntu1 > Version table: > *** 1.13.0~20140204-0ubuntu1 0 > 500 http://dk.archive.ubuntu.com/ubuntu/ trusty/main amd64 > Packages > 100 /var/lib/dpkg/status > 3) I expected libcairo2 (libcairo.so.2.11301.0) for Ubuntu14.04 to work > as efficient as libcairo2 (libcairo.so.2.11200.16)for Ubuntu13.10. > 4) Libcairo2 for Ubuntu 14.04 works 8 times slower indicating a lack of > MMX/SSE2/SSE3 etc acceleration. > > For the source, you have the source for libcairo2 for Ubuntu14.04. > > I can provide you with the source code for Snowmix using libcairo2, > but I don't expected you need it nor want it. > > Best regards > Peter Maersk-Moller > > ProblemType: Bug > DistroRelease: Ubuntu 14.04 > Package: libcairo2 1.13.0~20140204-0ubuntu1 > ProcVersionSignature: Ubuntu 3.13.0-34.60-generic 3.13.11.4 > Uname: Linux 3.13.0-34-generic x86_64 > ApportVersion: 2.14.1-0ubuntu3.3 > Architecture: amd64 > Date: Sat Aug 23 15:23:38 2014 > InstallationDate: Installed on 2013-06-21 (428 days ago) > InstallationMedia: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 > (20130213) > ProcEnviron: > LANGUAGE=en_US:en > TERM=xterm > PATH=(custom, no user) > LANG=en_US.UTF-8 > SHELL=/bin/bash > SourcePackage: cairo > UpgradeStatus: Upgraded to trusty on 2014-08-20 (3 days ago) > > To manage notifications about this bug go to: > https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1360606/+subscriptions > -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1360606 Title: libcairo.so for Ubuntu 14.04 is dead-slow compared to Ubuntu 13.10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1360606/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs