   How do you compute FPS
  I know this is a stupid question, but how do you compute the frames per second. I got as far as computing a time delta, but I can''t figure out how to compute the frames per second. 
  Hello,I use this function to obtain the FPS in my programs // Defining Variablesstatic float lastTime = 0.0f;static char strFrameRate[50] = {0};static float framesPerSecond = 0.0f;static float oldFrames = 0.0f;float currentTime = GetTickCount() * 0.001f; // Code starts here++framesPerSecond; if( currentTime - lastTime > 1.0f ) {lastTime = currentTime;oldFrames = framesPerSecond;framesPerSecond = 0;}And of course oldFrames will equal the framerate, then just put this in a timer and display oldFrames.Hope this helps.- BlueDev   [edited by - BlueDev on August 4, 2003 11:23:18 PM];  thanks ;  You''re welcome and Good Luck!!!- BlueDev 