Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

glxgears performance as root/non-root? <SOLVED>

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
cyblord
Guru
Guru
Posts: 424
Joined: Mon May 22, 2006 2:28 am

glxgears performance as root/non-root? <SOLVED>

  • Quote

Post by cyblord » Thu Jun 22, 2006 1:42 am

hmm... yeah this is a newbie question, but here it goes:

why is there a decrease in performance of glxgears when I run it as a user? it was laggy as choppy and have a fps of about 300. when I su to root, the performance shot way up to about 6000 fps. :?

does anyone know why it's like that?
Last edited by cyblord on Thu Jun 22, 2006 2:36 am, edited 1 time in total.
Top
rhetoric
n00b
n00b
Posts: 74
Joined: Sat Jul 02, 2005 2:09 am
Location: Upstate New York, USA (NOT the damn city)

  • Quote

Post by rhetoric » Thu Jun 22, 2006 1:53 am

I would assume the issue lies with permissions in access to 3d hardware acceleration. The 300 fps you mention is similar to that which I get using Mesa 3d and no acceleration. Unfortunately, I am not sure which files (or user groups) to point you to to clear this up. This should at least give a direction to look.
Top
cyblord
Guru
Guru
Posts: 424
Joined: Mon May 22, 2006 2:28 am

  • Quote

Post by cyblord » Thu Jun 22, 2006 1:59 am

since this is affecting my glxgears, it could be affecting my overall grapihcs performace also?
Top
xPAGANx
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 93
Joined: Wed Oct 08, 2003 12:46 pm
Location: Warren, Michigan

  • Quote

Post by xPAGANx » Thu Jun 22, 2006 2:13 am

cyblord wrote:since this is affecting my glxgears, it could be affecting my overall grapihcs performace also?
it most definitely is.

There is a DRI section at the botton of your xorg.conf file.

Inside there is like a group line and a chmod line usually.

You can either a) comment the lines out or b) join yourself to the video group.

At least I am betting that will fix you.
Top
cyblord
Guru
Guru
Posts: 424
Joined: Mon May 22, 2006 2:28 am

  • Quote

Post by cyblord » Thu Jun 22, 2006 2:26 am

Code: Select all

gpasswd -a myusername video
ran glxgears

Code: Select all

libGL error: failed to open DRM: Operation not permitted
libGL error: reverting to (slow) indirect rendering
1833 frames in 5.1 seconds = 356.022 FPS
I'll check out the xorg.conf and let you know how it goes
Top
RazielFMX
l33t
l33t
User avatar
Posts: 835
Joined: Sat Apr 23, 2005 6:35 pm
Location: NY, USA

  • Quote

Post by RazielFMX » Thu Jun 22, 2006 2:31 am

Add this to your xorg.conf, reboot X, and you will be golden (since you are in the video group):

Code: Select all


Section "dri"
        Mode 0666
EndSection


I had the same problem.
I am not anti-systemd; I am pro-choice. If being the latter makes you feel that I am the former, then so be it.
Top
cyblord
Guru
Guru
Posts: 424
Joined: Mon May 22, 2006 2:28 am

  • Quote

Post by cyblord » Thu Jun 22, 2006 2:36 am

Code: Select all

28709 frames in 5.0 seconds = 5741.784 FPS
28759 frames in 5.0 seconds = 5751.640 FPS
:) sweet!

problem solved.

Thanks for all the help!
Top
Post Reply

7 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy