Friday, October 17, 2008

AvgTimePerFrame calculation

 
//FrameRate calculataion
header File is reftime.h
-----------------------------
const LONGLONG MILLISECONDS = (1000);            // 10 ^ 3
const LONGLONG NANOSECONDS = (1000000000);       // 10 ^ 9
const LONGLONG UNITS = (NANOSECONDS / 100);      // 10 ^ 7
//const REFERENCE_TIME FPS_25  = UNITS / 25;
//const REFERENCE_TIME FPS_30  = UNITS / 30;
//AvgTimePerFrame  = UNITS/frameRate;

 

0 Comments:

Post a Comment

<< Home