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
Printable View
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
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.
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...
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
Movies don't have a variable frame rate that I know of, so why would you need to get the frame rate?
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
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...