Linux / UNIX: Test Graphical Performance ( 3D Acceleration / FPS )

How do I test my graphical performance including FPS under Linux operating system? How do I find out if 3D acceleration support is included or not under Linux?

You need to use the glxgears program is a port of the “gears” demo to GLX. It displays a set of rotating gears and prints out the frame rate at regular intervals. It has become quite popular as basic benchmarking tool.


Open a terminal and type the following command:
$ glxgears

Fig.01: glxgears in action (FPS rate is displayed in background)

Fig.01: glxgears in action (FPS rate is displayed in background)

Above is a result from my Quadro FX 570/PCI/SSE2. FPS rate < 1000 means you either lack 3D acceleration support or driver is not loaded.

🥺 Was this helpful? Please add a comment to show your appreciation or feedback.

nixCrat Tux Pixel Penguin
Hi! 🤠
I'm Vivek Gite, and I write about Linux, macOS, Unix, IT, programming, infosec, and open source. Subscribe to my RSS feed or email newsletter for updates.

16 comments… add one
  • Phoebe Sep 26, 2009 @ 23:13

    my system crashed and I reinstalled with the CD. I can’t get past the window for “user name and password”? What can I do? I have tried every combination of of passwords and nothing is working!

  • Corben Sep 27, 2009 @ 12:41

    Phoebe, boot system from CD (rescue mode) and remove password from /etc/shadow or try single user mode. It depends what OS have you got.

  • Zach Sep 5, 2012 @ 5:51

    Also, If you have vblank sync enabled because of your shitty nvidia card (or other reasons) this locks it to 60fps or whatever your vertical refresh rate is.

    • Antonello Nov 14, 2012 @ 14:48

      Hello, what does it means? I have 60 FPS, but with a sentence that sounds very much like whatever you are speaking about:
      “Running synchronized to the vertical refresh. The framerate should be
      approximately the same as the monitor refresh rate.”

      Thank you,
      Antonello (intel+ATI i5 laptop, ubuntu 12.10)

      • Martin Oct 17, 2015 @ 21:45

        Turn off synchronization and you will see the real speed (FPS):
        vblank_mode=0 glxgears

  • Alex Aug 14, 2013 @ 21:16

    Hello! I got a problem.

    When I was using my X server without installing my gpu’s driver, glxgears showed a performance about 300 FPS, after installing my gpu’s driver, performance is the same.

    My gpu is nvidia geforce 7300.

    Anybody knows how to fix that problem?<


Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Your comment will appear only after approval by the site admin.