Results 1 to 7 of 7

Thread: Getting fps of a program.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    269

    Getting fps of a program.

    I love that program FRAPS

    Is there a way that us mere VB programmers can find the fps of a DirectX program and display it in the corner.........

    I would love to be able to do that and also log the fps every second for testing etc....

    KT

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Location
    Phoenix
    Posts
    30
    I usualy add a hidden timer control set to 1 second interval.
    Then I incriment a FPS variable in the GAME LOOP, every 1 second (based on timer control) passes, I pritn the fps value, and reset the count to 0.
    I'm in college now.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    269
    Thanks but does this work for other programs too

    I just found some code how to do it

    Gonna check it out.
    I want to make say a bencher for some popular d3d games...

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    269
    Its actually the WinDVD window that i want to get the fps of.

    I suppose that is direct draw and not direct 3d.

    Any code to get the fps it is putting out?

    KT

  5. #5
    Addicted Member
    Join Date
    Aug 2002
    Location
    Baltimore, MD
    Posts
    230
    Movies don't have a variable frame rate that I know of, so why would you need to get the frame rate?

  6. #6
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Subclassing will solve this make a forums search on the topic. Intercept the WM_PAINT messages and you can make a FPS on that using PerformanceQuery or something like that... i dont remember the name of the timer function but its somewhere near "PerformanceQuery" or sumtnn
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    269
    i want to get the frame rate because people with older systems like to get the most out of their pcs.

    I know that with a slow cpu and gfx card, dvd players put out the same speed (in time) but the fps drops

    My raddy puts out full 25fps but on my old pc it is alot less.

    Anyone got code...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width