Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83313 - app-office/magicpoint is slow to calculate each slide
Summary: app-office/magicpoint is slow to calculate each slide
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo TreeCleaner Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 173552
  Show dependency tree
 
Reported: 2005-02-25 08:33 UTC by Denis Ducamp
Modified: 2007-09-24 09:52 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Ducamp 2005-02-25 08:33:53 UTC
Whatever the USE flags I use with truetype, magicpoint is slow to calculate each slide. Without the truetype USE flag, slides rendered by magicpoint are uggly... but that is another problem...

Reproducible: Always
Steps to Reproduce:
1. USE=truetype emerge magicpoint
2.
3.

Actual Results:  
magicpoint is slow to calculate each slide : up to 5 seconds of CPU time
actually magicpoint is unuseable to make a show

Expected Results:  
magicpoint should be fast to calculate each slide : less than 1 second of CPU time
magicpoint should be useable to make a show

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.4.28-gentoo-r5 i686)
=================================================================
System uname: 2.4.28-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 16:52:45)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.7.9-r1, 1.5, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X aalib adns alsa apache2 apm arts avi
bash-completion berkdb bitmap-fonts cdparanoia cdr chroot crypt cups curl dhcp
dvd dvdread edl emboss encode esd ethereal f77 fam flac flexresp font-server
foomaticdb fortran gdbm gif gmp gnome gnutls gpm gstreamer gtk gtk2 imagemagick
imlib java jpeg kde ldap libcaca libg++ libwww live lzo mad mbox mikmod mmx
motif mozcalendar mozilla mpeg ncurses nls ntlm offensive oggvorbis opengl oss
pam pcre pdflib perl png prelude python qt quicktime readline rtc sasl sdl skey
slang snmp snortsam spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts
virus-scan xml xml2 xmms xprint xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY




groar root # grep magicpoint /etc/portage/*
/etc/portage/package.keywords:app-office/magicpoint ~x86
/etc/portage/package.mask:#>=app-office/magicpoint-1.11b
/etc/portage/package.use:#app-office/magicpoint -truetype
/etc/portage/package.use:app-office/magicpoint -imlib




The ebuild uses those two configure flags :
                --disable-vflib \
                --disable-freetype \
By changing that to :
                --disable-vflib \
                --disable-xft2 \
then magicpoint uses freetype (/usr/lib/libttf.so.2) and works very well.

The same can be obtained by removing --disable-freetype and then using "mgp -x
vflib -x xft".


For information :
# qpkg -f /usr/lib/libttf.so.2 -v
media-libs/freetype-1.3.1-r4 *
# qpkg -f /usr/lib/libXft.so.2 -v
x11-base/xorg-x11-6.8.0-r4 *
# qpkg -f /usr/lib/libfreetype.so.6 -v
media-libs/freetype-2.1.9-r1 *
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-02-27 21:12:50 UTC
I guess it depends on what font(s) you are trying to use.
How many fonts do you have in /usr/share/fonts and which
font(s) are actually being used?

freetype-1 library is not maintained actively and I don't want 
to readd obsoleted library support to mgp, but if you don't 
have any other workaround I'll add it back.
Comment 2 Sonymouna Wocrad 2006-04-02 08:29:22 UTC
I agree with initial reporter, magicpoint using truetype fonts via xft2 is currently unbearable slow, on complex pages it even hangs.

Thanks for posting how to fix the ebuild to compile the "old style" support in, meanwhile hopefully someone will find out whats going wrong... :-/
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-08-04 16:14:52 UTC
Ping. Either change the ebuild or close this UPSTREAM. It's been sitting here for  1 1/2 year. Thanks.

Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2007-09-24 09:52:45 UTC
I bumped 1.12a, it is not slow for me, please test with that version