Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New Cairo 1.10.0 results in huge performance drop?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gqman69
n00b
n00b


Joined: 11 Jul 2007
Posts: 50

PostPosted: Wed Sep 08, 2010 2:53 pm    Post subject: New Cairo 1.10.0 results in huge performance drop? Reply with quote

I installed cairo 1.10.0 and animations are choppy with composite on, either in kwin4 or compiz.

This is true for gnome or kde4.

Rendering is slow and sometimes even stops rendering for a fraction of a second and continue thereafter.

Is anyone else experiencing problems?
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Sep 08, 2010 3:16 pm    Post subject: Reply with quote

could you post some more info on this ?

I just emerged cairo 1.10.0 and pixman 0.19.2 and didn't observe and immediate noticable performance-regression (after zapping the X-server and logging in again into gnome)

card: radeon HD 5850, catalyst 10.8, xorg-server 1.8.2
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Wed Sep 08, 2010 3:32 pm    Post subject: Reply with quote

Wroks fine here on X 1.8.2
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Wed Sep 08, 2010 3:34 pm    Post subject: Reply with quote

I don't know what kind of magic that new cairo library did but the frame-rates at least must have doubled (with firefox that is) ! 8O

http://www.effectgames.com/demos/canvascycle/

edit:

here's a stripped down ebuild for tinkering around
cairo-1.10.0.ebuild wrote:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.8.ebuild,v 1.12 2009/10/09 18:42:39 armin76 Exp $

EAPI=2

inherit eutils flag-o-matic libtool

DESCRIPTION="A vector graphics library with cross-device output support"
HOMEPAGE="http://cairographics.org/"
SRC_URI="http://cairographics.org/releases/${P}.tar.gz"

LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
#KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
KEYWORDS="~x86 ~amd64"
IUSE="debug directfb doc qt4 svg X xcb"

# Test causes a circular depend on gtk+... since gtk+ needs cairo but test needs gtk+ so we need to block it
RESTRICT="test"

RDEPEND="media-libs/fontconfig
>=media-libs/freetype-2.1.9
sys-libs/zlib
media-libs/libpng
>=x11-libs/pixman-0.12.0
directfb? ( >=dev-libs/DirectFB-0.9.24 )
qt4? (
>=x11-libs/qt-gui-4.4
>=x11-libs/qt-core-4.4 )
svg? ( dev-libs/libxml2 )
X? ( >=x11-libs/libXrender-0.6
x11-libs/libXext
x11-libs/libX11
x11-libs/libXft )
xcb? ( >=x11-libs/libxcb-0.92
x11-libs/xcb-util )"
# test? (
# pdf test
# x11-libs/pango
# >=x11-libs/gtk+-2.0
# >=app-text/poppler-bindings-0.9.2[gtk]
# ps test
# virtual/ghostscript
# svg test
# >=x11-libs/gtk+-2.0
# >=gnome-base/librsvg-2.15.0

DEPEND="${RDEPEND}
>=dev-util/pkgconfig-0.19
doc? ( >=dev-util/gtk-doc-1.6
~app-text/docbook-xml-dtd-4.2 )
X? ( x11-proto/renderproto )
xcb? ( x11-proto/xcb-proto )"

src_prepare() {
# ClearType-like patches applied by ArchLinux
# use cleartype && epatch "${FILESDIR}"/cairo-1.2.4-lcd-cleartype-like.diff

# We need to run elibtoolize to ensure correct so versioning on FreeBSD
elibtoolize
}

src_configure() {
#gets rid of fbmmx.c inlining warnings
append-flags -finline-limit=1200

# if use glitz && use opengl; then
# export glitz_LIBS=$(pkg-config --libs glitz-glx)
# fi

econf $(use_enable X xlib) $(use_enable doc gtk-doc) \
$(use_enable directfb) $(use_enable xcb) $(use_enable qt4 qt) \
$(use_enable svg) $(use_enable X xlib-xrender) \
$(use_enable debug test-surfaces) --enable-pdf --enable-png \
--enable-ft --enable-ps \
|| die "configure failed"
}

# $(use_enable glitz)

src_install() {
make DESTDIR="${D}" install || die "Installation failed"
dodoc AUTHORS ChangeLog NEWS README
}

pkg_postinst() {
if use xcb; then
ewarn "You have enabled the Cairo XCB backend which is used only by"
ewarn "a select few apps. The Cairo XCB backend is presently"
ewarn "un-maintained and needs a lot of work to get it caught up"
ewarn "to the Xrender and Xlib backends, which are the backends used"
ewarn "by most applications. See:"
ewarn "http://lists.freedesktop.org/archives/xcb/2008-December/004139.html"
fi
}

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
gqman69
n00b
n00b


Joined: 11 Jul 2007
Posts: 50

PostPosted: Wed Sep 08, 2010 5:10 pm    Post subject: Reply with quote

Well, this is exactly the same behavior I had with the betas (1.9.x).

I will try to isolate the problem, even though I already tried...

Using nvidia 256 drivers and composite or not I get the same slowness.
Back to top
View user's profile Send private message
benneque
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2007
Posts: 134

PostPosted: Wed Sep 08, 2010 11:54 pm    Post subject: Reply with quote

I've got a question, 'cause there are soooo many rendering backends in cairo 1.10...
I don't understand HOW they work and if i can switch them and which I should use.

My desktop is KDE 4.5.1, nearly everything works with Qt 4.7 RC.
I think cairo is only used for firefox ?! And somewhere I read about webkit. I use webkit in rekonq.
Desktop profile activates opengl and xcb backends, but theres also one for qt.
Should I compile in Qt backend ? Can some apps profit from it?

I don't know and don't understand which app uses cairo where !?


Please help me. Thanks :)
Back to top
View user's profile Send private message
Jhedron
n00b
n00b


Joined: 07 Jun 2005
Posts: 45
Location: Michigan, USA

PostPosted: Thu Sep 09, 2010 4:41 am    Post subject: Re: New Cairo 1.10.0 results in huge performance drop? Reply with quote

gqman69 wrote:
I installed cairo 1.10.0 and animations are choppy with composite on, either in kwin4 or compiz.

This is true for gnome or kde4.

Rendering is slow and sometimes even stops rendering for a fraction of a second and continue thereafter.

Is anyone else experiencing problems?


I am also having performance problems since installing cairo 1.10.0 (I use Gnome). Additionally, there are several places where various bits of the UI are not rendered properly (activated or 'pressed' buttons, partially selected text in text boxes). This is after a revdep-rebuild and even a reboot.

Whatever the cause, it appears to be system-wide as the issue showed up when I logged in as a brand new user and on the various dialogs presented by GDM.
Back to top
View user's profile Send private message
gqman69
n00b
n00b


Joined: 11 Jul 2007
Posts: 50

PostPosted: Thu Sep 09, 2010 6:53 am    Post subject: Reply with quote

Yep. There's definitely something going on with cairo 1.10.0.

Rebuilt everything. Rendering is weird as Jhedron said and some things are super slow.

This might be an nVidia problem... There are a couple of threads on the nVidia forum concerning UI rendering and xorg-server 1.9 slowness which strangely resembles these problems.
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Thu Sep 09, 2010 10:19 am    Post subject: Reply with quote

It is not a nvidia problem, I have the same issue with an intel based one.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3843
Location: Dallas area

PostPosted: Thu Sep 09, 2010 12:07 pm    Post subject: Reply with quote

I compiled cairo-1.10.0 from the x11 overlay yesterday and it was working fine.

It got added to the normal gentoo area (I update early morning) and it wanted to
compile using the "xcb" USE flag, so I recompiled, fired up firefox and there were
many places where instead of text I got black bars, so I recompiled removing the
"xcb" flag and things are working fine again.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 248

PostPosted: Thu Sep 09, 2010 12:32 pm    Post subject: Reply with quote

ussing -r1 fix my problems
Back to top
View user's profile Send private message
Ormaaj
Guru
Guru


Joined: 28 Jan 2008
Posts: 319

PostPosted: Thu Sep 09, 2010 12:50 pm    Post subject: Reply with quote

What does chromium use for rendering if not cairo? It would seem to make sense for them to use cairo since it's used so extensively in gtk (and of course chrome is gtk).
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3843
Location: Dallas area

PostPosted: Thu Sep 09, 2010 1:15 pm    Post subject: Reply with quote

I just upgraded to the cairo-1.10.0-r1 version w/xcb flag set and it appears to be working fine.


I think the problems that have surfaced have to do with trying to get xcb support to the level of other libraries that are using it, just my opinion.
_________________
Asus m5a99fx, FX 8320 - nouveau, oss4, rx550 for qemu passthrough
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
5.0.13 zen kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 8.2.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Thu Sep 09, 2010 2:46 pm    Post subject: Reply with quote

Ormaaj wrote:
What does chromium use for rendering if not cairo? It would seem to make sense for them to use cairo since it's used so extensively in gtk (and of course chrome is gtk).


Chromium uses cairo for GUI elements.
Back to top
View user's profile Send private message
mrfree
Veteran
Veteran


Joined: 15 Mar 2003
Posts: 1303
Location: Europe.Italy.Sulmona

PostPosted: Thu Sep 09, 2010 3:28 pm    Post subject: Reply with quote

Using cairo-1.10 causes ugly fonts here, I think un-antialiased fonts
_________________
Please EU, pimp my country!

ICE: /etc/init.d/iptables panic
Back to top
View user's profile Send private message
gqman69
n00b
n00b


Joined: 11 Jul 2007
Posts: 50

PostPosted: Thu Sep 09, 2010 4:06 pm    Post subject: Reply with quote

Nope, r1 did nothing here.

Still having all the issues.
Back to top
View user's profile Send private message
ssteinberg
Apprentice
Apprentice


Joined: 09 Jul 2010
Posts: 206
Location: Israel

PostPosted: Thu Sep 09, 2010 4:16 pm    Post subject: Reply with quote

mrfree wrote:
Using cairo-1.10 causes ugly fonts here, I think un-antialiased fonts


Because of no cleartype. Check Gentoo bugs, I posted a modified cleartype patch for 1.9/1.10/9999 cairo.
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Sep 09, 2010 4:38 pm    Post subject: Reply with quote

ssteinberg wrote:
mrfree wrote:
Using cairo-1.10 causes ugly fonts here, I think un-antialiased fonts


Because of no cleartype. Check Gentoo bugs, I posted a modified cleartype patch for 1.9/1.10/9999 cairo.


nice !

thanks for that patch ! :D
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2664
Location: Slovenia

PostPosted: Thu Sep 09, 2010 4:57 pm    Post subject: Reply with quote

Ormaaj wrote:
What does chromium use for rendering if not cairo?

Skia - http://code.google.com/p/skia/
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6108
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Sep 09, 2010 5:36 pm    Post subject: Reply with quote

Gusar wrote:
Ormaaj wrote:
What does chromium use for rendering if not cairo?

Skia - http://code.google.com/p/skia/


http://blogs.igalia.com/alex/2010/04/09/webkit-meeting-next-week-and-rendering/

http://neugierig.org/software/chromium/notes/2009/06/skia-on-other-platforms.html
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kmare
l33t
l33t


Joined: 20 Nov 2004
Posts: 619
Location: Thessaloniki, Greece

PostPosted: Thu Sep 09, 2010 7:03 pm    Post subject: Reply with quote

Downgrading to cairo 1.8.10 fixed the ugly (non antialiazed) fonts. Didn't try yet the cleartype-patched cairo ssteinberg mentioned before but I'll give it a shot.
btw, a link to bgo with the patch anyone?

thanx in advance

EDIT: nevermind, here it is: https://bugs.gentoo.org/show_bug.cgi?id=331743
_________________
Never argue with an idiot. They will only pull you down to their level, then beat you with experience.
Back to top
View user's profile Send private message
gqman69
n00b
n00b


Joined: 11 Jul 2007
Posts: 50

PostPosted: Fri Sep 10, 2010 1:16 am    Post subject: Reply with quote

What about this?

http://www.nvnews.net/vbulletin/showthread.php?t=154919
Back to top
View user's profile Send private message
Jhedron
n00b
n00b


Joined: 07 Jun 2005
Posts: 45
Location: Michigan, USA

PostPosted: Fri Sep 10, 2010 2:25 am    Post subject: Reply with quote

I'm pretty sure that, at least in my case, the cause is related to the nvidia issue as described through various links posted earlier. I recompiled/updated cairo without the xcb flag and that cleared up a few of the rendering problems. However, just about anything that would normally be rendered using some type of gradient is still displayed incorrectly. Performance is just as bad as well.
Back to top
View user's profile Send private message
Belliash
Advocate
Advocate


Joined: 24 Nov 2004
Posts: 2428
Location: Wroclaw, Poland

PostPosted: Fri Sep 10, 2010 1:15 pm    Post subject: Reply with quote

I dont have any performance drop, but i got 'artifacts' on websites when using firefox and in all windows when using compiz.
Reverted back to 1.8.10 and all my problems are gone now
_________________
Asio Software Technologies
Belliash IT Weblog
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Sep 10, 2010 1:24 pm    Post subject: Reply with quote

just FYI

cairo-1.10.0-r2 and also now cairo-1.10.0-r3 should take care of most these rendering / performance issues
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum