Announcement

Collapse
No announcement yet.

Tool for measuring FPS in games

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by whizse View Post
    Yeah, any specific game you're thinking of, or why not use PTS in the first place?

    A user friendly tool similar to Fraps would be nice to have, but sponsoring the development yourself might be expensive.
    Any games I can get my hands on. Anything new coming out for Linux, all the blockbuster Mac games as well (Dragon Age, Riddick, etc).

    That's the thing. I don't know how expensive it would be, so I can't make a call. I know that I need it and I'm looking for a way to obtain it. I can't write it myself, so I'm considering paying for it.

    Comment


    • #17
      The OpenGL Profiler on OS X is not bad! It's not precisely what I'm looking for, but it does indeed show the framerate of an application it attaches to.

      I need to do more tests, but it should be OK for very rough performance estimates. "Rough" because it seems to update the FPS relatively rarely as it doesn't react to pretty dramatic but short framerate dips and it's necessary to look at the display at all times to record the framerates. I'm sure a programmer would be able to hook into something there to extract the data, though :-)

      Anyway, something like this but more suited to benchmarking would be ideal: hooking up to an application, measuring fps at short intervals (1/5 sec?) and dumping the result to a file in a format easily importable to OpenOffice's Calc. Benchmarking heaven :-D

      Comment


      • #18
        A little bit more geeky than the profiler on OS X I imagine, but it does the job:

        Code:
        $ BUGLE_CHAIN=showfps LD_PRELOAD=/home/sa/Temp/bugle/lib/libbugle.so glxgears
        
        $ cat bugle.log 
        [INFO] logstats.frames per second: 36.2 fps
        [INFO] logstats.frames per second: 60.1 fps
        [INFO] logstats.frames per second: 60.0 fps
        [INFO] logstats.frames per second: 59.9 fps
        [...]
        
        $ awk '{ s += $5 } END { print "average framerate: ", s/NR }' bugle.log
        average framerate:  59.7136
        (Of course you need to build bugle first, and make a few small edits to ~/.bugle/filters before it logs to a file.)

        Comment


        • #19
          Originally posted by whizse View Post
          (Of course you need to build bugle first, and make a few small edits to ~/.bugle/filters before it logs to a file.)
          Well, there WAS a reason I mentioned it, but warned there was a bit of "assembly required" involved with it's use.

          Comment


          • #20
            Yup, too bad it hasn't been packaged by more distros.

            Comment


            • #21
              Maybe this is a stupid question. but shouldn't all window/fullscreen games be rendered with indirect rendering? Couldn't we just extract the fps from compiz itself? As far as I remember, it has a buildin fps counter.

              I don't know though, if it shows the fps of the actual game or the desktop behind the game.

              Comment


              • #22
                libGLFPS - http://code.fluffytapeworm.com/projects/libglfps - although it never worked for me, but it builds ok for i386/amd64

                Frapix - http://code.google.com/p/frapix/ - newer, did not test it yet

                Comment


                • #23
                  Originally posted by Hans View Post
                  Maybe this is a stupid question. but shouldn't all window/fullscreen games be rendered with indirect rendering? Couldn't we just extract the fps from compiz itself? As far as I remember, it has a buildin fps counter.
                  I was under the impression that most games chose direct rendering if it is available, but I haven't had time to actually dig in and confirm that.

                  Comment


                  • #24
                    Originally posted by bridgman View Post
                    I was under the impression that most games chose direct rendering if it is available, but I haven't had time to actually dig in and confirm that.
                    I think it depends on the driver?
                    I just though the reason for using dri2, was that everything were rendered indirectly, such that for an example the volume notification area wan't causing flicker when the volume is adjusted within a fullscreen game?

                    Comment


                    • #25
                      Originally posted by Hans View Post
                      I think it depends on the driver?
                      I just though the reason for using dri2, was that everything were rendered indirectly, such that for an example the volume notification area wan't causing flicker when the volume is adjusted within a fullscreen game?
                      I've never been able to adjust volume with a full-screen game running. Except in Wine; somehow it allows it when native Linux games don't. I don't mind the flicker, at least let me adjust the volume using keyboard keys :-)

                      Comment


                      • #26
                        meh

                        http://code.google.com/p/frapix/Frapix does not work, no idea why either

                        it needs libimago: http://gfxtools.sourceforge.net/
                        built both 32 and 64bit versions, separately, installed them, put the libs in /usr/local/lib32 and lib64

                        built frapix for 32 and 64bit, installed the libs

                        now, preloaded the 64bit lib for Unigine Heaven 2.1 64bit with no error but no framerate displayed, nor does the frame limiter work either

                        preloaded 32bit lib and i get this error:
                        ERROR: ld.so: object '/usr/local/lib32/libfrapix.so' from LD_PRELOAD cannot be preloaded: ignored.
                        any ideas ?

                        Comment


                        • #27
                          I wonder if the Phoronix Test Suite team could develop a tool to show the FPS in overlay mode while is playing a game. It is something that apparently does not exist in Linux.
                          It would be great!

                          Comment


                          • #28
                            Hello I also need a way t get FPS from a aplication that does not log them.

                            I fount bugle and tested it with success.

                            Now does any one knows if it has a big impact on performance to use bugle just to get FPS to a log file?

                            Thank you

                            Comment


                            • #29
                              Hello again no news about this subject?

                              Comment


                              • #30
                                Try libframetime.

                                Comment

                                Working...
                                X