Announcement

Collapse
No announcement yet.

Tool for measuring FPS in games

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

  • Tool for measuring FPS in games

    AFAICT, nothing like this exists for Linux. Is it at all possible to do?

    Clearly the Phoronix Test Suite measures FPS of various games, but I'm not a programmer and wouldn't be able to make nor heads nor tails from it.

    Basically, I'm looking for even a quick-and-dirty solution which would show the FPS of an app (game) and dump it into a file for further processing. If possible, both for Linux and OS X.

    Any ideas?

    Thanks.

  • #2
    Nobody?

    Is something like this doesn't exist, how hard/expensive would it be to make it?

    Comment


    • #3
      I'm pretty sure the PTS simply uses the built in FPS counter in the games themselves.

      I'm not really sure how something more general could be implemented, but I would guess it would be possible to hack something up in the drivers?

      Comment


      • #4
        A programmer friend of mine says it needs to count framebuffer flips?

        Anyway, for this to be useful at all it needs to work with nvidia/ati drivers, so I suppose hacking up drivers is out of the question.

        Comment


        • #5
          Originally posted by dammarin View Post
          A programmer friend of mine says it needs to count framebuffer flips?

          Anyway, for this to be useful at all it needs to work with nvidia/ati drivers, so I suppose hacking up drivers is out of the question.
          The big problem lies in that there is no answers for you that don't require a bit of programming effort on your part at this time.

          BuGlE will compile out of box on most systems without user intervention- but it requires a smidge of understanding about how to drive it, which isn't easy because it's more a debugging tool for developers than what you're actually looking for. It will, however do precisely what you're looking for. But...as I've said, there's a bit of assembly required for the parts to make it go. And it'll work with just about any 3D drivers for Linux.

          Comment


          • #6
            Originally posted by dammarin View Post
            AFAICT, nothing like this exists for Linux. Is it at all possible to do?

            Clearly the Phoronix Test Suite measures FPS of various games, but I'm not a programmer and wouldn't be able to make nor heads nor tails from it.

            Basically, I'm looking for even a quick-and-dirty solution which would show the FPS of an app (game) and dump it into a file for further processing. If possible, both for Linux and OS X.

            Any ideas?

            Thanks.
            There is a way you can do this with games run under Wine. Just add the environment variable WINEDEBUG=+fps to the start of the command. e.g
            WINEDEBUG=+fps wine <game>.exe

            You can add "&> game.log" at the end of the command to dump the output.

            Comment


            • #7
              @Svartalf

              Thanks, I'll... try to get it working. I suppose a programmer would be able to extract just the fps-measuring part from it fairly easily?

              @bugmenot2

              Once again, Wine proves to be a very potent tool indeed :-) Thank you, I'm sure it'll come in handy.

              ---

              Any ideas about equivalent functionality for OS X? Is there a chance buGLe could be ported easily?

              Comment


              • #8
                Cool! Another interesting tool I never heard about

                dammarin, it looks like Xcode provides some sort of OpenGL profiler on OSX:
                http://developer.apple.com/graphicsi...ler_image.html

                Comment


                • #9
                  Yay, the profiler looks like it may do the job. Too bad I'm basically an idiot and I probably won't be able to use these tools :-(

                  How would I go about contracting someone to make something like this, following a design doc?

                  Comment


                  • #10
                    Getting started with BuGLE, setting it up to log framerates to a file, and then processing it with awk or something similar to get get the average framerate isn't that hard, and you can probably get all the help you need here in the forum.

                    Not sure if it fits with what you're trying to accomplish though?

                    Comment


                    • #11
                      Originally posted by whizse View Post
                      Getting started with BuGLE, setting it up to log framerates to a file, and then processing it with awk or something similar to get get the average framerate isn't that hard, and you can probably get all the help you need here in the forum.

                      Not sure if it fits with what you're trying to accomplish though?
                      BuGLe looks like a good tool for Linux. I'd like to have something like this for OS X too, though. I can't either test BuGLe or Xcode until this evening, however :-(

                      What I'm trying to do is twofold:

                      First, since gaming just took off on Mac and is about to take of on Linux with the release of Steam, I believe people will want to read benchmarks of various games on these systems, so tools to do it will be useful. I want to do such benchmarks.

                      Second, since nothing like this exists on either platform, this could be made into an end-user product, since people will probably want to do the benchmarks themselves.

                      Which is why I'm thinking about contracting someone to do it, since I can't program for the life of me.

                      Comment


                      • #12
                        Does every benchmark-worthy game already not have a FPS counter?

                        Comment


                        • #13
                          Originally posted by whizse View Post
                          Cool! Another interesting tool I never heard about

                          dammarin, it looks like Xcode provides some sort of OpenGL profiler on OSX:
                          http://developer.apple.com/graphicsi...ler_image.html
                          Unfortunately, this would require a re-write to be able to do things on Linux as it's a MacOS item. (Doesn't mean it won't happen- it's just not there right now... )

                          Comment


                          • #14
                            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.

                            Comment


                            • #15
                              Originally posted by curaga View Post
                              Does every benchmark-worthy game already not have a FPS counter?
                              Actually, no, they don't. (From personal and professional experience, you're going to find that only things like Quake, etc. have that sort of beastie and they've been relying on things like Fraps, etc. to get actual FPS counts...)

                              Comment

                              Working...
                              X