Jump to content

Recommended Posts

Guest tkishore
Posted

Hi,

I am having some trouble figuring out the best way to calculate the Frames per second for my MPEG4 player application. I tried using WINCE TIMER for calculating FSP but I got very unrealistic FPS (it was very high).

Any suggestions in this regard will be greatly appreciated.

Thanks.

Posted

do a GetTickCount each time through your game loop and store it

the difference between the GetTickCount and the last one is the number of milliseconds the previous 'frame' took

divide 1000 by this number and it gives you the FPS

it's better to gather say 100 frames tickcounts into an array and average that out

of course if you are using GapiDraw then it has a GetActualFrameRate function

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.