Results 1 to 8 of 8

Thread: Performance on Linux

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2006
    Posts
    21

    Performance on Linux

    My application runs much much slower on Linux platforms(RedHat and Suse) with the same graphics card.
    My machine is dual boot.
    Are there any environment variables that I can tweak to enhance performance?

    Any advice will be very much appreciated.

    -KB

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    659

    Re: Performance on Linux

    are you sure the problem is the opengl driver, not in the compiler? are you using optimization flags ('gcc -O3', for instance)?

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2006
    Posts
    21

    Re: Performance on Linux

    Not sure if it's the opengl driver or the compiler.
    But the difference in the performance is so huge,
    the compilers(Visual C for Windows and Absoft for RedHat Enterprise) I am using do not explain the gap in the performance.
    I do not use any optimization on the slow linux.

    Thanks.

    -KB

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Aug 2004
    Location
    munich, germany
    Posts
    659

    Re: Performance on Linux

    i think you should create some simple programs using different techniques and compare their performance on both OS.

    start with a very simple program which only clears color and depth buffer. its performance should be nearly the same on both OS, since clearing and swapping buffers takes place on the graphics hardware and cannot be influenced by the driver.

    then increase the program's complexity by either using display lists, vbos, drawing a huge number of polygons etc. try to get to the point where the performance starts to differ.

    btw can you say a bit more about your app? is it pure xlib/glx or does it use lesstif/motif? what techniques does it use (lighting/texturing/display lists/vertex arrays/vbos)?

    finally: what does glxinfo say?

  5. #5
    Member Newbie
    Join Date
    Jun 2004
    Posts
    34

    Re: Performance on Linux

    Originally posted by kobebryant:
    Not sure if it's the opengl driver or the compiler.
    But the difference in the performance is so huge,
    That is a good sign, that you haven't installed any graphics card drivers and the application is using software rendering...
    Try this on a console window from inside your XServer and post the output:
    Code :
    glxinfo | grep Direct

  6. #6
    Junior Member Newbie
    Join Date
    Jan 2006
    Posts
    21

    Re: Performance on Linux

    At glxinfo | rendering,
    I got
    "direct rendering: No"

    How do I get "Yes" to the glxinfo?

    Thanks.

    -KB

  7. #7
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: Performance on Linux

    Install the appropriate drivers for your graphic card and you should get rid of all your problems.

  8. #8
    Junior Member Newbie
    Join Date
    Jan 2006
    Posts
    21

    Re: Performance on Linux

    I see. I will install the right driver.

    But I am still surprized by the fact that my HP linux workstation does not have the driver bacause I bought it as linux preinstalled.

    Thanks.

    -KB

Similar Threads

  1. OGL performance in Linux, FX 5900
    By Stephen Webb in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 09-13-2003, 10:30 AM
  2. Performance of VA/CVA under Linux/NVidia PC
    By martin_marinov in forum OpenGL: Linux
    Replies: 4
    Last Post: 03-27-2002, 09:53 AM
  3. Performance under Linux
    By i3bargon in forum OpenGL: Linux
    Replies: 2
    Last Post: 12-13-2001, 02:36 AM
  4. VAR performance with Linux
    By Lev in forum OpenGL: Linux
    Replies: 3
    Last Post: 06-11-2001, 02:55 AM
  5. OpenGL performance under Linux!
    By Intruder in forum OpenGL: Linux
    Replies: 6
    Last Post: 10-05-2000, 01:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean