You are not logged in.

#1 2010-08-30 23:22:15

kwbauson
Member
Registered: 2010-08-23
Posts: 34

How do I turn on direct rendering?

After looking at the Maximizing Performance wiki page, I ran " glxinfo | grep direct"  and got "direct rendering: No (LIBGL_ALWAYS_INDIRECT set)."  I've looked at the framerate of compiz with the benchmark plugin and on Arch I get around 28 fps.  When I was using Ubuntu maverick-daily on the same computer, the average fps was much higher.  In fact, the fps was around 30 while rotating the cube with 3d windows, skydome, and atlantis plugin.  On arch, when rotating cube with just 3d windows, the framerate drops to 14.  I'm assuming that this major performance issue is because of the direct rendering, but I don't know how to enable it.  Could someone tell me how?

Offline

#2 2010-08-30 23:30:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I turn on direct rendering?

And what card and driver are you using / were you using on Ubuntu?

Offline

#3 2010-08-30 23:34:11

kwbauson
Member
Registered: 2010-08-23
Posts: 34

Re: How do I turn on direct rendering?

I'm using an Intel card.  On Arch I installed the xf86-video-intel driver.  Ubuntu automatically selected my graphics driver and I never bothered to check what it was, and I deleted Ubuntu to install Arch (definitely worth it).

Offline

#4 2010-08-30 23:46:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I turn on direct rendering?

kwbauson wrote:

I'm using an Intel card.  On Arch I installed the xf86-video-intel driver.  Ubuntu automatically selected my graphics driver and I never bothered to check what it was, and I deleted Ubuntu to install Arch (definitely worth it).

How do you configure X? Post your xorg.conf if you have one.
According to the man page, Option "NoAccel" toggles acceleration.

Offline

#5 2010-08-30 23:57:50

kwbauson
Member
Registered: 2010-08-23
Posts: 34

Re: How do I turn on direct rendering?

I don't have an xorg.conf file.  Should I make one?  My system is running great so far except for compiz (been running Arch for about 5 days).

Offline

#6 2010-08-31 00:00:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I turn on direct rendering?

Yes, you can create one. If it doesn't help, you can just remove it.
What do you have in /etc/X11/xorg.conf.d/ ?

Offline

#7 2010-08-31 00:02:55

kwbauson
Member
Registered: 2010-08-23
Posts: 34

Re: How do I turn on direct rendering?

In /etc/X11/xorg.conf.d/ I have 10-evdev.conf, 10-quirks.conf, and 10-synaptics.conf.

Offline

#8 2010-08-31 00:23:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I turn on direct rendering?

Run

unset LIBGL_ALWAYS_INDIRECT
glxinfo | grep direct

Edit: http://www.phoronix.com/forums/showpost … ostcount=6
http://www.phoronix.com/forums/showthre … 848&page=2
If I understand it correctly running compiz turns direct rendering off. Try disabling compiz and see if the framerate picks up.

Last edited by karol (2010-08-31 00:35:00)

Offline

#9 2010-08-31 00:45:06

kwbauson
Member
Registered: 2010-08-23
Posts: 34

Re: How do I turn on direct rendering?

Hm... So does why is my compiz framerate so much slower in Arch than in Ubuntu?  Also, I read on Arch Wiki that with intel graphics cards, the framerate from glxgears should be around 60, which it is.  Also, the framerate I was originally talking about was compiz's framerate, which I found with compiz's benchmark plugin.  Sorry if I wasn't clear on that.

Offline

#10 2010-08-31 00:49:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I turn on direct rendering?

kwbauson wrote:

Hm... So does why is my compiz framerate so much slower in Arch than in Ubuntu?  Also, I read on Arch Wiki that with intel graphics cards, the framerate from glxgears should be around 60, which it is.  Also, the framerate I was originally talking about was compiz's framerate, which I found with compiz's benchmark plugin.  Sorry if I wasn't clear on that.

I have no idea what compiz does to direct rendering, I have an old card which uses intel-legacy driver so I can't really help you with that.

Offline

#11 2010-08-31 08:42:11

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: How do I turn on direct rendering?

Something somewhere sets LIBGL_ALWAYS_INDIRECT. You need to figure out what sets it and change it.

Offline

#12 2010-08-31 08:56:50

revenant
Member
From: Lithuania
Registered: 2009-09-18
Posts: 19

Re: How do I turn on direct rendering?

Did you add your user to the group video? Run "gpasswd -a <user> video" as root if you did not

Offline

#13 2010-08-31 13:43:09

kwbauson
Member
Registered: 2010-08-23
Posts: 34

Re: How do I turn on direct rendering?

I'm in the video group, but I don't direct rendering was the problem (although I did get it on with unset LIBGL_ALWAYS_INDIRECT).  I just realized that I've added the --indirect-rendering option compiz because otherwise the windows didn't refresh right (framerate is pretty much the same even when I don't add the --indirect-rendering).

Offline

Board footer

Powered by FluxBB