|
-
Sep 27th, 2002, 07:29 PM
#1
Thread Starter
Hyperactive Member
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
-
Sep 27th, 2002, 08:24 PM
#2
Junior Member
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.
-
Sep 27th, 2002, 08:27 PM
#3
Thread Starter
Hyperactive Member
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...
-
Sep 27th, 2002, 08:59 PM
#4
Thread Starter
Hyperactive Member
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
-
Sep 29th, 2002, 02:26 PM
#5
Addicted Member
Movies don't have a variable frame rate that I know of, so why would you need to get the frame rate?
-
Sep 29th, 2002, 02:39 PM
#6
Fanatic Member
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
-
Sep 29th, 2002, 02:39 PM
#7
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|