Sorry, didn't read all the code, too long.
If you have the time between frames in a TimeSpan then calculate frames per second with
var fps = 1 / timeBetweenFrames.TotalSeconds;
if you have the number of seconds between frames in a double then calculate frames per second with
var fps = 1 / timeBetweenFrames;
if you have the number of milliseconds between frames in an int then calculate frames per second with
var fps = 1000.0 / timeBetweenFrames;
Is this what your question is about?
If it is not can you give a shorter example which reproduces the problem?
Paul Linton
No comments:
Post a Comment