Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Absurdly slow HD video and 2D performance with Intel GPU
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sun Aug 21, 2011 4:10 am    Post subject: Absurdly slow HD video and 2D performance with Intel GPU Reply with quote

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
View user's profile Send private message
Angrychile
Apprentice
Apprentice


Joined: 27 Oct 2009
Posts: 235

PostPosted: Sun Aug 21, 2011 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sun Aug 21, 2011 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Aug 21, 2011 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message
dirkfanick
Apprentice
Apprentice


Joined: 12 Jan 2011
Posts: 201
Location: germany - hamburg

PostPosted: Mon Aug 22, 2011 2:57 pm    Post subject: Reply with quote

Maybe you should check your use-flags.

directfb, vesa, graphic-card support, etc..
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Mon Aug 22, 2011 6:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sat Aug 27, 2011 10:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Sun Aug 28, 2011 6:41 am    Post subject: Reply with quote

video group?
Back to top
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sun Aug 28, 2011 6:57 pm    Post subject: Reply with quote

chithanh wrote:
video group?


Yes, otherwise direct rendering wouldn't work at all...
Back to top
View user's profile Send private message
dirkfanick
Apprentice
Apprentice


Joined: 12 Jan 2011
Posts: 201
Location: germany - hamburg

PostPosted: Mon Aug 29, 2011 1:25 pm    Post subject: Reply with quote

Quote:
I recompiled libdrm, mesa, and xf86-video-intel


what are your USE-flags for them?
Back to top
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sun Sep 04, 2011 5:18 am    Post subject: Reply with quote

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
View user's profile Send private message
dirkfanick
Apprentice
Apprentice


Joined: 12 Jan 2011
Posts: 201
Location: germany - hamburg

PostPosted: Mon Sep 05, 2011 10:57 am    Post subject: Reply with quote

Maybe this helps:

http://en.gentoo-wiki.com/wiki/Intel_GMA

http://www.gentoo-wiki.info/Intel_GMA

Quote:
Framebuffer Graphics

See this guide: http://www.gentoo-wiki.info/Fbsplash

There are two dedicated driver for intel chipsets:

* i810fb: Intel 810 up to Intel 815
* intelfb: Intel 830M up to Intel 945GM (since 2.6.26 also up to 965GM)

Newer chipsets have to use the vesa or vesa-tng driver.


USE="vesa" ?
Back to top
View user's profile Send private message
gman8
n00b
n00b


Joined: 04 Jul 2008
Posts: 15

PostPosted: Sat Sep 24, 2011 6:24 am    Post subject: Reply with quote

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
View user's profile Send private message
dirkfanick
Apprentice
Apprentice


Joined: 12 Jan 2011
Posts: 201
Location: germany - hamburg

PostPosted: Sat Sep 24, 2011 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sun Sep 25, 2011 12:58 am    Post subject: Reply with quote

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
View user's profile Send private message
LiquidAcid
Apprentice
Apprentice


Joined: 11 Sep 2006
Posts: 171

PostPosted: Thu Sep 29, 2011 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
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