View previous topic :: View next topic |
Author |
Message |
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sun Aug 21, 2011 4:10 am Post subject: Absurdly slow HD video and 2D performance with Intel GPU |
|
|
Hello folks,
My system is having trouble handling anything that involves large areas of 2D graphics. HD Video on VLC, Mplayer, and Flash (Youtube) all play at about 4-5 fps. Same goes for some java programs that use the window as a canvas.
Ubuntu is installed on the same system, and it works perfectly fine on it. It also runs perfectly fine when using the Gentoo kernel to run the Ubuntu userland.
My system has a 2 GHz Core 2 Duo and an Intel 4500MHD.
What could be the issue here? I've tried applying Ubuntu's patches to mesa, xf86-video-intel, and xorg-server with no avail. Strangely, playing video on the console (vlc --vout fb) works just fine.
Thanks in advance!
Last edited by gman8 on Sun Aug 28, 2011 3:20 am; edited 1 time in total |
|
Back to top |
|
|
Angrychile Apprentice
Joined: 27 Oct 2009 Posts: 235
|
Posted: Sun Aug 21, 2011 4:50 am Post subject: |
|
|
so you've narrowed it to X. try comparing the config files for the ubuntu version with that of your gentoo _________________ hola |
|
Back to top |
|
|
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sun Aug 21, 2011 5:47 am Post subject: |
|
|
No xorg.conf or drirc exists for either distro.
Strangely, the performance problem goes away when I replace Gentoo's /usr/bin/Xorg and /usr/lib/dri/i965_dri.so with that of Ubuntu's, but then of course that causes its own problems. |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Aug 21, 2011 6:31 am Post subject: |
|
|
gman8 wrote: | the performance problem goes away when I replace Gentoo's /usr/bin/Xorg and /usr/lib/dri/i965_dri.so with that of Ubuntu's |
If I were you, I would try again to apply Ubuntu's patches for xorg-server and mesa-lib. |
|
Back to top |
|
|
dirkfanick Apprentice
Joined: 12 Jan 2011 Posts: 201 Location: germany - hamburg
|
Posted: Mon Aug 22, 2011 2:57 pm Post subject: |
|
|
Maybe you should check your use-flags.
directfb, vesa, graphic-card support, etc.. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Mon Aug 22, 2011 6:26 pm Post subject: |
|
|
Check that your hardware acceleration works and that your user is in the video group.
"glxinfo | grep renderer" and "xvinfo" will tell more. |
|
Back to top |
|
|
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sat Aug 27, 2011 10:56 pm Post subject: |
|
|
I recompiled libdrm, mesa, and xf86-video-intel with Ubuntu's patches with no avail, but I was using the latest version. Could this possibly be a performance regression?
glxinfo | grep render:
Code: |
direct rendering: Yes
OpenGL renderer string: Mesa DRI Mobile Intel�� GM45 Express Chipset
|
xvinfo:
Code: |
X-Video Extension version 2.2
screen #0
Adaptor #0: "Intel(R) Textured Video"
number of ports: 16
port base: 88
operations supported: PutImage
supported visuals:
depth 24, visualID 0x21
number of attributes: 3
"XV_BRIGHTNESS" (range -128 to 127)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range 0 to 255)
client settable attribute
client gettable attribute (current value is 0)
"XV_SYNC_TO_VBLANK" (range -1 to 1)
client settable attribute
client gettable attribute (current value is 1)
maximum XvImage size: 2048 x 2048
Number of image formats: 5
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x30323449 (I420)
guid: 49343230-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x59565955 (UYVY)
guid: 55595659-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x434d5658 (XVMC)
guid: 58564d43-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
|
|
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Sun Aug 28, 2011 6:41 am Post subject: |
|
|
video group? |
|
Back to top |
|
|
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sun Aug 28, 2011 6:57 pm Post subject: |
|
|
chithanh wrote: | video group? |
Yes, otherwise direct rendering wouldn't work at all... |
|
Back to top |
|
|
dirkfanick Apprentice
Joined: 12 Jan 2011 Posts: 201 Location: germany - hamburg
|
Posted: Mon Aug 29, 2011 1:25 pm Post subject: |
|
|
Quote: | I recompiled libdrm, mesa, and xf86-video-intel |
what are your USE-flags for them? |
|
Back to top |
|
|
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sun Sep 04, 2011 5:18 am Post subject: |
|
|
dirkfanick wrote: | Quote: | I recompiled libdrm, mesa, and xf86-video-intel |
what are your USE-flags for them? |
libdrm: libkms video_cards_intel
mesa: classic egl gallium gbm gles llvm nptl openvg shared-dricore shared-glapi video_cards_intel
xorg-server: ipv6 kdrive nptl udev xnest xorg xvfb
xf86-video-intel: dri |
|
Back to top |
|
|
dirkfanick Apprentice
Joined: 12 Jan 2011 Posts: 201 Location: germany - hamburg
|
|
Back to top |
|
|
gman8 n00b
Joined: 04 Jul 2008 Posts: 15
|
Posted: Sat Sep 24, 2011 6:24 am Post subject: |
|
|
The Intel GMA entries on Gentoo's wikis are far outdated, especially for the unstable keyword.
I just set up Arch with the same versions of Mesa and X11 as Gentoo, and Youtube videos (and HD videos) run perfectly. There's a patch for their xorg-server named "bg-none-revert.patch"; I think the Gentoo devs might want to check that out (I personally have no idea what it does though.) |
|
Back to top |
|
|
dirkfanick Apprentice
Joined: 12 Jan 2011 Posts: 201 Location: germany - hamburg
|
Posted: Sat Sep 24, 2011 12:08 pm Post subject: |
|
|
Quote: | I just set up Arch with the same versions of Mesa and X11 as Gentoo, and Youtube videos (and HD videos) run perfectly. |
So if all thes USE-flags are implemented for your hardware maybe your kernel-config misses some configurations. Check all of this please. Also don't miss VIDEO_CARDS="intel".
You also could ask arch-people for applied patches and their config, but generally gentoo should be able to perform the same. Maybe you can use their sources and compile them for gentoo - just an idea.
Stange that vlc brings up the trick. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sun Sep 25, 2011 12:58 am Post subject: |
|
|
Hardware video acceleration requires at least one of USE=xvmc, vaapi or vdpau and a mesa version new enough to implement them (not 7.11). |
|
Back to top |
|
|
LiquidAcid Apprentice
Joined: 11 Sep 2006 Posts: 171
|
Posted: Thu Sep 29, 2011 8:59 pm Post subject: |
|
|
Ant P. wrote: | Hardware video acceleration requires at least one of USE=xvmc, vaapi or vdpau and a mesa version new enough to implement them (not 7.11). |
vaapi for intel isn't realized in mesa.
To use GPU decoding on a Intel GPU (I use a Intel Arrandale here) you have to use a recent libdrm, libva and mplayer-vaapi. |
|
Back to top |
|
|
|